title: Maven versioning best practices
body: <p>What is the best way to change version of Maven project, to release this version and then return back to <code>*-SNAPSHOT</code> development.</p>
  
  <p>Currently I'm doing following:</p>
  
  <ul>
  <li>retrieve current version (most likely with <code>SNAPSHOT</code>) from <code>pom.xml</code></li>
  <li>increment version (<code>mvn -DnewVersion=&lt;something&gt; versions:set</code>), respecting rules described in the question <a href="https://stackoverflow.com/questions/5352326/maven-artifact-version-for-patches">Maven artifact version for patches</a></li>
  <li><code>mvn:install</code> to sent to repo</li>
  <li>renaming version once again adding <code>SNAPSHOT</code> postfix.</li>
  <li>committing changes (using some version control system)    </li>
  </ul>
  
  <p>I have a strong feeling I'm doing something wrong and/or inefficient.</p>