title: How make an archetype generates a file named like the artifactId
body: <p>I have a small <code>ConfigurationSingleton</code> class which loads some properties from a configuration file named, at the moment, <code>configuration_singleton.xml</code>:</p>
  
  <pre><code>private ConfigurationSingleton() throws IOException {
    ...
    configurationIS = ConfigurationSingleton.class.
        getResourceAsStream("/configuration_singleton.xml");
    ...
  </code></pre>
  
  <p>The file is in the directory:</p>
  
  <pre><code>/
  ++- src
      +-- test
          +-- resources
              +-- configuration_singleton.xml
  </code></pre>
  
  <p>Now <strong>I want to use an archetype</strong> to generate the <code>my-project-1.0.0.jar</code> artifact which is configured by the <code>my-project-1.0.0.xml</code> file. As usual I have used a Maven properties <code>${artifactId}</code> and <code>${version}</code> here:</p>
  
  <pre><code>private ConfigurationSingleton() throws IOException {
    ...
    configurationIS = ConfigurationSingleton.class.
        getResourceAsStream("/${artifactId}-${version}.xml");
    ...
  </code></pre>
  
  <p>but how make the archetype generates a configuration file named like <code>${artifactId}-${version}.xml</code>?</p>