jaxb2-maven-plugin add classpath to generated sources
<p>I use the codehaus jaxb-maven-plugin to create java classes from xml schemas:</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.2&lt;/version&gt;
            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;id&gt;xjc&lt;/id&gt;
                    &lt;phase&gt;generate-sources&lt;/phase&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;xjc&lt;/goal&gt;
                    &lt;/goals&gt;
                    &lt;configuration&gt;
                        &lt;sources&gt;
                            &lt;source&gt;src/my.xsd&lt;/source&gt;
                        &lt;/sources&gt;                           
                            &lt;packageName&gt;mypackage&lt;/packageName&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
         &lt;/plugin&gt;
</code></pre>

<p>The classes are generated as expected to <code>target/generated-sources/jaxb</code>, but this path is not added to the classpath.</p>

<p>So, if I use some of generated classes in other (not generated) classes, maven cannot found it during the compile process.</p>

<p>Any ideas? TIA!</p>