title: maven wsdl2java configuration not working properly
body: <p>I am looking to execute wsdl2java via maven and have tried several different methods with no full success. The first way I was doing it:</p>
  
  <pre><code>&lt;plugin&gt;  
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;  
      &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;  
      &lt;version&gt;1.1&lt;/version&gt;  
      &lt;executions&gt;  
          &lt;execution&gt;  
              &lt;phase&gt;compile&lt;/phase&gt;  
              &lt;goals&gt;  
                  &lt;goal&gt;java&lt;/goal&gt;  
              &lt;/goals&gt;  
              &lt;configuration&gt;  
                  &lt;mainClass&gt;org.apache.axis.wsdl.WSDL2Java&lt;/mainClass&gt;  
                  &lt;arguments&gt;  
                      &lt;argument&gt;-client&lt;/argument&gt;  
                      &lt;argument&gt;-o&lt;/argument&gt;  
                      &lt;argument&gt;gensrc&lt;/argument&gt;  
                      &lt;argument&gt;wsdl/JobAPIWebWrapped.wsdl&lt;/argument&gt;  
                  &lt;/arguments&gt;  
              &lt;/configuration&gt;  
          &lt;/execution&gt;  
      &lt;/executions&gt;  
  &lt;/plugin&gt;
  </code></pre>
  
  <p>This version will create the exact structure that I am looking for due to the call to org.apache.axis.wsdl.WSDL2Java, but will not continue with any other maven plugins beyond that. It ends the log with executing main or something to that effect.</p>
  
  <p>The other method I have tried:</p>
  
  <pre><code>&lt;plugin&gt;  
      &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
      &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.1.2&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;generate-sources&lt;/id&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;sourceRoot&gt;gensrc&lt;/sourceRoot&gt;
                  &lt;wsdlOptions&gt;
                      &lt;wsdlOption&gt;
                          &lt;wsdl&gt;wsdl/JobAPIWebWrapped.wsdl&lt;/wsdl&gt;
                      &lt;/wsdlOption&gt;
                  &lt;/wsdlOptions&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                  &lt;goal&gt;wsdl2java&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>The problem with this execution is that it generates a lot more java files than the previous execution stated higher up. I have checked the compatibility of this larger fileset and found it will work fine, but would like to find a way to force it to execute with the same java class as the first example. This version will, however, complete and allow me to move on to the following plugins called by maven.</p>
  
  <p>Third:</p>
  
  <pre><code>&lt;plugin&gt; 
      &lt;groupId&gt;org.apache.axis&lt;/groupId&gt;
      &lt;artifactId&gt;wsdl2java-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.4.1-SNAPSHOT&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;generate-sources&lt;/id&gt;
              &lt;phase&gt;generate-sources&lt;/phase&gt;
              &lt;configuration&gt;
          &lt;implementationClassName&gt;org.apache.axis.wsdl.WSDL2Java&lt;/implementationClassName&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>This version isn't even being recognized... wondering if I am calling the plugin incorrectly because it isn't even showing up anywhere with verbose logging.</p>
  
  <p>I have been searching quite a bit and have yet to find a successful answer. I am very close to just writing a shell script to run the maven set-up by calling the first example then moving on. Any help is greatly appreciated. Thanks.</p>