title: How to predefine XSD file name with jaxb2-maven-plugin
body: <p>I use a code below to generate an XSD from annotated java-classes. Default name of the XSD is always "schema1.xsd". How should I pre-define it using only that plugin? At the moment I use maven-antrun-plugin for file renaming. <a href="http://www.mojohaus.org/jaxb2-maven-plugin/Documentation/v2.2/schemagen-mojo.html" rel="nofollow noreferrer">Plugin manual</a> doesn't contain relevant information.</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
    &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.3&lt;/version&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;goals&gt;
          &lt;goal&gt;schemagen&lt;/goal&gt;
        &lt;/goals&gt;
        &lt;phase&gt;generate-sources&lt;/phase&gt;
        &lt;configuration&gt;
          &lt;sources&gt;
            &lt;source&gt;src/main/java/***some package***&lt;/source&gt;
          &lt;/sources&gt;
          &lt;outputDirectory&gt;${project.build.directory}/generated-sources/schemas&lt;/outputDirectory&gt;
        &lt;/configuration&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>