title: Prefixing JAXB generated classes
body: <p>I have this Maven "task" to generate Java classes from an XSD file using JAXB.</p>
  
  <pre><code>        &lt;!-- XML to Java classes --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;com.sun.tools.xjc.maven2&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jaxb-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;generate-sources&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;generatePackage&gt;nl.compay.service&lt;/generatePackage&gt;
                  &lt;schemaDirectory&gt;src/main/webapp/compay&lt;/schemaDirectory&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>For an XSD type "User", it generates a class named "User" (duh). However, I also have a JPA entity class called "User" (though in a different package).
  Can I change the XML config above to let JAXB prefix the generated classes with something like "XML"?</p>