title: Wsimport fails during Maven build
body: <p>I'm trying to use wsimport to generate classes from a WSDL.</p>
  
  <p>I'm using the Maven POP generated by Netbeans (7.1) but I get the following output when I attempt to build it:</p>
  
  <pre><code>[jaxws:wsimport]
  Processing: C:\Users\...\src\wsdl\ShipService_v5.wsdl
  jaxws:wsimport args: [-s, C:\Users\...\target\generated-sources\jaxws-wsimport, -d, C:\Users\...\target\classes, -verbose, -catalog, C:\Users\...\src\jax-ws-catalog.xml, -wsdllocation, file:/C:/Users/.../Desktop/ShipService_v5.wsdl, -extension, -Xnocompile, C:\Users\...\src\wsdl\ShipService_v5.wsdl]
  parsing WSDL...
  
  ------------------------------------------------------------------------
  BUILD FAILURE
  ------------------------------------------------------------------------
  Total time: 1.361s
  Finished at: Mon Apr 09 12:51:52 BST 2012
  Final Memory: 4M/120M
  ------------------------------------------------------------------------
  Failed to execute goal org.codehaus.mojo:jaxws-maven-plugin:1.10:wsimport (wsimport-generate-ShipService_v5) on project RPDataStreams: Error executing: wsimport [-s, C:\Users\...\target\generated-sources\jaxws-wsimport, -d, C:\Users\...\target\classes, -verbose, -catalog, C:\Users\...\src\jax-ws-catalog.xml, -wsdllocation, file:/C:/Users/.../Desktop/ShipService_v5.wsdl, -extension, -Xnocompile, C:\Users\...\src\wsdl\ShipService_v5.wsdl] -&gt; [Help 1]
  </code></pre>
  
  <p>The Plugin section from my POM is:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;jaxws-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.10&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;goals&gt;
                  &lt;goal&gt;wsimport&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;wsdlFiles&gt;
                      &lt;wsdlFile&gt;ShipService_v5.wsdl&lt;/wsdlFile&gt;
                  &lt;/wsdlFiles&gt;
                  &lt;wsdlLocation&gt;file:/C:/Users/.../Desktop/ShipService_v5.wsdl&lt;/wsdlLocation&gt;
                  &lt;staleFile&gt;${project.build.directory}/jaxws/stale/ShipService_v5.stale&lt;/staleFile&gt;
              &lt;/configuration&gt;
              &lt;id&gt;wsimport-generate-ShipService_v5&lt;/id&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.xml&lt;/groupId&gt;
              &lt;artifactId&gt;webservices-api&lt;/artifactId&gt;
              &lt;version&gt;1.4&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;configuration&gt;
          &lt;sourceDestDir&gt;${project.build.directory}/generated-sources/jaxws-wsimport&lt;/sourceDestDir&gt;
          &lt;xnocompile&gt;true&lt;/xnocompile&gt;
          &lt;verbose&gt;true&lt;/verbose&gt;
          &lt;extension&gt;true&lt;/extension&gt;
          &lt;catalog&gt;${basedir}/src/jax-ws-catalog.xml&lt;/catalog&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I know that there's nothing wrong with the WSDL I'm using, I've also tried it with the WSDL from <a href="http://graphical.weather.gov/xml/DWMLgen/wsdl/ndfdXML.wsdl" rel="noreferrer">http://graphical.weather.gov/xml/DWMLgen/wsdl/ndfdXML.wsdl</a>.</p>
  
  <p>I've tried building this project from Netbeans and on the command line from an Ubuntu server, both times I get the same result.</p>
  
  <p>I've now narrowed this down to the dependency on jconfig. If I Comment out the block below then the web service sources are build successfully.</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.jconfig&lt;/groupId&gt;
          &lt;artifactId&gt;jconfig&lt;/artifactId&gt;
          &lt;version&gt;2.9&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;jmxri&lt;/artifactId&gt;
                  &lt;groupId&gt;com.sun.jmx&lt;/groupId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Thanks for the help.</p>