Change package property in Maven Archetype
<p>I created a Maven Archetype. My <code>META-INF/maven/archetype-metadata.xml</code> looks like this:</p>

<pre><code>&lt;archetype-descriptor xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"&gt;

  &lt;fileSets&gt;
    &lt;fileSet filtered="true" packaged="true" encoding="UTF-8" &gt;
      &lt;directory&gt;src/main/java&lt;/directory&gt;
    &lt;/fileSet&gt;
  &lt;/fileSets&gt;

&lt;/archetype-descriptor&gt;
</code></pre>

<p>This works, as in that it creates a Java source folder and puts my classes in the package as defined by the <code>groupId</code> and the <code>artifactId</code>.</p>

<p>However, I want to modify his package name. For example, if my groupId is <code>com.example</code> and my artifactId <code>wvdz</code>, then my package should be:</p>

<pre><code>com.example.wvdz.mypackage
</code></pre>

<p><strong>Question</strong>: How do I accomplish this?</p>