Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>first off you should always specify which version of a dependency or plugin you are using</p> <pre><code>&lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt; &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt; &lt;version&gt;0.8.0&lt;/version&gt; </code></pre> <p>then you have to supply the following entries inside an execution</p> <pre><code>&lt;schemaDirectory&gt;src/main/resources&lt;/schemaDirectory&gt; &lt;schemaIncludes&gt; &lt;include&gt;test.xsd&lt;/include&gt; &lt;/schemaIncludes&gt; </code></pre> <p>Here is a complete definition, I have included the jaxb2-basics plugin as you almost always want what it does.</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt; &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt; &lt;version&gt;0.8.0&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;jaxb-test&lt;/id&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;generate&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;forceRegenerate&gt;true&lt;/forceRegenerate&gt; &lt;schemaDirectory&gt;src/main/resources&lt;/schemaDirectory&gt; &lt;schemaIncludes&gt; &lt;include&gt;test.xsd&lt;/include&gt; &lt;/schemaIncludes&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;configuration&gt; &lt;extension&gt;true&lt;/extension&gt; &lt;args&gt; &lt;arg&gt;-XtoString&lt;/arg&gt; &lt;arg&gt;-Xequals&lt;/arg&gt; &lt;arg&gt;-XhashCode&lt;/arg&gt; &lt;arg&gt;-Xcopyable&lt;/arg&gt; &lt;arg&gt;-Xmergeable&lt;/arg&gt; &lt;/args&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt; &lt;artifactId&gt;jaxb2-basics&lt;/artifactId&gt; &lt;version&gt;0.6.0&lt;/version&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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