title: The simplest way to deploy to production with builds
body: <p>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.</p>
  
  <p>So, I have a simple project containing of web-app. 
  I want basically following:</p>
  
  <ul>
  <li>deploy to development Tomcat (I'm using tomcat:deploy), then do nothing.</li>
  <li>deploy to production Tomcat, but <strong>before deployment</strong> update git repo, add tagged commit and upgrade build version.  </li>
  </ul>
  
  <p>For distinguishing between development and production I've created profiles, <code>dev</code> and <code>prod</code>. The <code>dev</code> profile is activated by default. When I want to deploy something to production, I just type <code>mvn -P prod tomcat:deploy</code></p>
  
  <p>I've read about release plugin, as well as about buildnumber plugin.
  But I'm just not sure I'm going the right way. </p>
  
  <p>So, the question is - what is the most succint, self-contained and "mavenish" way to resolve the task I'm asking about.</p>