title: Multiple WSDLs Configurations With Maven JAXWS
body: <p>I need to include more than one WSDL in my Maven JAXWS configuration and I need to specify different output directories for them since some of the method names in wsdlA conflict with method names in wsdlB. I'm using org.jvnet.jax-ws-commons and I need bindings to apply only to wsdlA, not wsdlB.</p>
  
  <p>This is what I have at the moment:</p>
  
  <pre><code>&lt;build&gt;
      &lt;pluginManagement&gt;
        &lt;plugins&gt;
          &lt;plugin&gt; 
            &lt;groupId&gt;org.jvnet.jax-ws-commons&lt;/groupId&gt; 
            &lt;artifactId&gt;jaxws-maven-plugin&lt;/artifactId&gt; 
            &lt;version&gt;2.1&lt;/version&gt; 
            &lt;executions&gt;
              &lt;execution&gt; 
                &lt;goals&gt; 
                  &lt;goal&gt;wsimport&lt;/goal&gt; 
                &lt;/goals&gt;
              &lt;/execution&gt; 
            &lt;/executions&gt;
            &lt;configuration&gt; 
              &lt;!-- Configure Output --&gt;
              &lt;packageName&gt;com.mycee.project.model&lt;/packageName&gt; 
              &lt;sourceDestDir&gt;src/main/java&lt;/sourceDestDir&gt;
              &lt;!-- Configure WSDL Location --&gt;
              &lt;wsdlFiles&gt;
                &lt;wsdlFile&gt;
                  ${basedir}/src/jaxws/wsdl/wsdla.wsdl
                &lt;/wsdlFile&gt;
                &lt;!--
                &lt;wsdlFile&gt; 
                  ${basedir}/src/jaxws/wsdl/wsdlb.wsdl
                &lt;/wsdlFile&gt;
                --&gt;   
              &lt;/wsdlFiles&gt;
              &lt;!-- Configure Binding Location --&gt;
              &lt;bindingDirectory&gt;
                ${basedir}/src/jaxws/binding
              &lt;/bindingDirectory&gt;
              &lt;!-- Make Output Verbose --&gt;
              &lt;verbose&gt;true&lt;/verbose&gt;
            &lt;/configuration&gt; 
          &lt;/plugin&gt;         
        &lt;/plugins&gt;            
      &lt;/pluginManagement&gt;
    &lt;/build&gt;
  </code></pre>
  
  <p>UPDATED:</p>
  
  <pre><code>&lt;build&gt;
      &lt;pluginManagement&gt;
        &lt;plugins&gt;
            &lt;!-- WSDL GENERATOR PLUGIN --&gt;
            &lt;!-- mvn jaxws:wsimport    --&gt;
            &lt;plugin&gt; 
                &lt;groupId&gt;org.jvnet.jax-ws-commons&lt;/groupId&gt; 
                &lt;artifactId&gt;jaxws-maven-plugin&lt;/artifactId&gt; 
                &lt;version&gt;2.3&lt;/version&gt; 
                &lt;executions&gt;
                    &lt;!-- WSDL A --&gt;
                    &lt;execution&gt;
                        &lt;id&gt;WSDLA&lt;/id&gt;
                        &lt;phase&gt;generate-sources&lt;/phase&gt;
                        &lt;goals&gt; 
                            &lt;goal&gt;wsimport&lt;/goal&gt; 
                        &lt;/goals&gt;
                        &lt;configuration&gt;
                            &lt;packageName&gt;com.mycee.project.model.wsdla&lt;/packageName&gt;                                                                    &lt;staleFile&gt;${project.build.directory}/jaxws/stale/wsdl.a.done&lt;/staleFile&gt;
                            &lt;wsdlFiles&gt;
                                &lt;wsdlFile&gt;${basedir}/src/jaxws/wsdl/wsdla.wsdl&lt;/wsdlFile&gt;
                            &lt;/wsdlFiles&gt;
                            &lt;bindingDirectory&gt;${basedir}/src/jaxws/binding&lt;/bindingDirectory&gt;
                        &lt;/configuration&gt;                          
                    &lt;/execution&gt;
                    &lt;!-- WSDL B --&gt;
                    &lt;execution&gt;
                        &lt;id&gt;WSDLB&lt;/id&gt;
                        &lt;phase&gt;generate-sources&lt;/phase&gt;
                        &lt;goals&gt; 
                            &lt;goal&gt;wsimport&lt;/goal&gt; 
                        &lt;/goals&gt;
                        &lt;configuration&gt;        
                            &lt;packageName&gt;com.mycee.project.model.wsdlb&lt;/packageName&gt;
                            &lt;staleFile&gt;${project.build.directory}/jaxws/stale/wsdl.b.done&lt;/staleFile&gt;
                            &lt;wsdlFiles&gt;
                                &lt;wsdlFile&gt;${basedir}/src/jaxws/wsdl/wsdlb.wsdl&lt;/wsdlFile&gt;
                            &lt;/wsdlFiles&gt;
                        &lt;/configuration&gt;
                    &lt;/execution&gt;
                &lt;/executions&gt;
                &lt;!-- Common Config --&gt;  
                &lt;configuration&gt;
                    &lt;verbose&gt;true&lt;/verbose&gt;
                    &lt;wsdlDirectory&gt;
                        ${basedir}/src/jaxws/wsdl
                    &lt;/wsdlDirectory&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt; 
        &lt;/plugins&gt;  
      &lt;/pluginManagement&gt;
    &lt;/build&gt;
  </code></pre>
  
  <p>When running mvn clean jaxws:wsimport, I get the following notification with no java code being generated:</p>
  
  <blockquote>
    <p>[INFO] --- jaxws-maven-plugin:2.2:wsimport (default-cli) @
    [INFO] No WSDLs are found to process, Specify
    atleast one of the following parameters: wsdlFiles, wsdlDirectory or wsdlUrls.</p>
  </blockquote>