title: How to run xjc -nv in java
body: <p>I got a pretty large .xsd. I encountered problems to create the classes with xjc. Following error occured:</p>
  
  <pre><code>[ERROR] Current configuration of the parser doesn't allow a maxOccurs attribute value to be set greater than the value 5,000.
  </code></pre>
  
  <p>I made a workaround by using xjc -nv .</p>
  
  <p>I'm trying to create the java classes via maven at the moment. </p>
  
  <pre><code>&lt;build&gt;
  &lt;plugins&gt;
    &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;goals&gt;
            &lt;goal&gt;xjc&lt;/goal&gt;
          &lt;/goals&gt;
        &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
        &lt;!-- The package of your generated sources --&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <p></p>
  
  <p>Whenever I compile the project, i get an error. </p>
  
  <p>Is there any way to also let maven use the -nv argument?</p>