Note that there are some explanatory texts on larger screens.

plurals
  1. POmaven-jaxb2-plugin isn't generating any output
    text
    copied!<p>I'm new to Maven, and am trying to use it to generate the Java classes from my XSD.</p> <p>My xsd file is in src/main/resources/xsd </p> <p>In dependencies I have this, but I don't think I need it as I'm using Java 1.6</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt; &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt; &lt;version&gt;2.0&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>In the build section I have</p> <pre><code> &lt;build&gt; &lt;pluginManagement&gt; .. &lt;plugin&gt; &lt;inherited&gt;true&lt;/inherited&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;version&gt;2.0.2&lt;/version&gt; &lt;configuration&gt; &lt;source&gt;1.6&lt;/source&gt; &lt;target&gt;1.6&lt;/target&gt; &lt;/configuration&gt; &lt;/plugin&gt; .. &lt;plugin&gt; &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt; &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;goals&gt; &lt;goal&gt;generate&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;includeSchemas&gt; &lt;includeSchema&gt;**/test.xsd&lt;/includeSchema&gt; &lt;/includeSchemas&gt; &lt;generatePackage&gt;com.myproject.adapter.generated&lt;/generatePackage&gt; &lt;bindingDirectory&gt;src/main/binding&lt;/bindingDirectory&gt; &lt;removeOldOutput&gt;true&lt;/removeOldOutput&gt; &lt;verbose&gt;true&lt;/verbose&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>But, when I run it, I get nothing. I've run mvn compile and generate-sources, with the -e and -X flags to have a look at the output, but it seems the target isn't getting invoked. Any ideas ?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload