KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I must confess I'm new to maven world after years of living in the world of monstrous debuild/ant/makefile chimeric constructions. I just don't have yet that very feeling which helps seasoned developer to choose right decisions, and it's looks like there are plenty different ways in maven. So, I have a simple project containing of web-app. I want basically following: deploy to development Tomcat (I'm using tomcat:deploy), then do nothing. deploy to production Tomcat, but before deployment update git repo, add tagged commit and upgrade build version. For distinguishing between development and production I've created profiles, dev and prod . The dev profile is activated by default. When I want to deploy something to production, I just type mvn -P prod tomcat:deploy I've read about release plugin, as well as about buildnumber plugin. But I'm just not sure I'm going the right way. So, the question is - what is the most succint, self-contained and "mavenish" way to resolve the task I'm asking about.
Tags (comma-separated)
Save Edits
Cancel