title: How to escape special characters in maven properties
body: <p>I am using an archetype to generate a project, and as part of this I need to dynamically generate a property within the pom file.</p>
  
  <p>The problem is that the name of a property in maven does not allow the dollar sign ($), and this sign is needed to denote a property defined in the archetype generation step.</p>
  
  <p>E.g. I need to achieve:</p>
  
  <pre><code>   &lt;${property}.version&gt;[0,)&lt;/${property}.version&gt;
  </code></pre>
  
  <p>But maven does not allow this, and the pom becomes corrupt.</p>
  
  <p>I have searched and attempted the following but none of them work:</p>
  
  <ul>
  <li><p>Using double dollar $$</p></li>
  <li><p>Using escape \$</p></li>
  <li><p>Using &#36;</p></li>
  <li><p>Using the hexa notation for the dollar \u0024</p></li>
  </ul>
  
  <p>Does anyone know if this is possible, and if so, how to achieve it?</p>