title: Replace Maven Archetype property in JavaScript file
body: <p>I'm trying to create a Maven Archetype for a Java web app and I have some JavaScript files I want it to generate. Is it possible to use Maven Archetype properties in the JavaScript file such that it will get replaced by the defined value at generation?</p>
  
  <p><strong>example.js</strong></p>
  
  <pre><code>#set( $symbol_escape = '$' )
  var name = "${artifactId}"
  </code></pre>
  
  <p>The above doesn't appear to work. I've tried other properties as well. It would seem it just isn't supported. Maybe due to collision possibilities with '$'?</p>
  
  <p>The end resulting example.js file that is created just has the text "${artifactId}" instead of replacing it with the value of the property artifactId.</p>
  
  <p>I'm using Maven Archetype plugin/extension version 2.2.</p>
  
  <p><strong>archetype-metadata.xml</strong></p>
  
  <pre><code>...
  &lt;fileSet filtered="true" encoding="UTF-8"&gt;
    &lt;directory&gt;src/main/javascript&lt;/directory&gt;
    &lt;includes&gt;
      &lt;include&gt;**/*.js&lt;/include&gt;
    &lt;/includes&gt;
  &lt;/fileSet&gt;
  </code></pre>
  
  <p>JS Path: src/main/javascript/my/package/name/example.js</p>