title: Maven archetype creation : prototype pom
body: <p>I am creating a maven archetype. In this I have a prototype project, which gets created for a user when the user calls the following command:</p>
  
  <p>mvn archetype:generate -DarchetypeGroupId=xxx -DarchetypeArtifactId=archtype-yyyy -DarchetypeVersion=1.1.0-S5-SNAPSHOT -DgroupId=zzz -DartifactId=proj11</p>
  
  <p>In the prototype pom, I want to use the 'archetypeVersion' property that I am specifying in the above command. Like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mmmm&lt;/groupId&gt;
          &lt;artifactId&gt;nte&lt;/artifactId&gt;
          &lt;version&gt;${archetypeVersion}&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>This is not working for me. When the project is created, it still shows the dependency snippet in the generated pom exactly as it is posted above. It does not replace it.</p>
  
  <p>Is this possible? Does maven allow this?
  If yes, how can I do it?</p>