title: Maven: Best way to change SNAPSHOT to Release version for parent/child modules while release?
body: <p>While development we use the SNAPSHOT version (for example 1.0-SNAPSHOT) for maven modules.</p>
  
  <p>For example Parent Module's Maven Configugration:</p>
  
  <pre><code>&lt;groupId&gt;com.mycomp.basemodule&lt;/groupId&gt;
  &lt;artifactId&gt;base-module&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;name&gt;base-module&lt;/name&gt;
  &lt;modules&gt;       
      &lt;module&gt;sub-module1&lt;/module&gt;        
      &lt;module&gt;sub-module2&lt;/module&gt;        
      &lt;module&gt;sub-module3&lt;/module&gt;        
      &lt;module&gt;sub-module4&lt;/module&gt;        
  
  &lt;/modules&gt;
  </code></pre>
  
  <p>For example Child Module's Maven Configugration:</p>
  
  <p>Sub-Module-1:</p>
  
  <pre><code>&lt;parent&gt;
       &lt;groupId&gt;com.mycomp.basemodule&lt;/groupId&gt;
        &lt;artifactId&gt;base-module&lt;/artifactId&gt;
        &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  &lt;groupId&gt;com.mycomp.sub-module1&lt;/groupId&gt;
  &lt;artifactId&gt;sub-module1&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;war&lt;/packaging&gt;
  &lt;name&gt;sub-module1&lt;/name&gt;
  </code></pre>
  
  <p>Also consider same configuration for other sub modules (2,3,4) too.</p>
  
  <p>While releasing the project/patch, we need to change this SNAPSHOT version to actual release version. </p>
  
  <p>There is one crude way to change the version. I can go to each and every pom.xml for parent and all child modules and can change the SNAPSHOT version to release version.</p>
  
  <p>Is there any other best practice  to change this  SNAPSHOT version to release version at common place so that I don't need to update all pom.xml files?</p>