title: Generating classes from multiple wsdl files using maven-jaxb2-plugin
body: <p>I can generate classes from one wsdl file like this:</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.12.3&lt;/version&gt;
      &lt;configuration&gt;
          &lt;schemaLanguage&gt;WSDL&lt;/schemaLanguage&gt;
          &lt;schemaDirectory&gt;src/main/resources&lt;/schemaDirectory&gt;
          &lt;schemaIncludes&gt;
              &lt;include&gt;bwl_1_1.wsdl&lt;/include&gt;
          &lt;/schemaIncludes&gt;
          &lt;generatePackage&gt;bwl.wsdl&lt;/generatePackage&gt;
          &lt;generateDirectory&gt;${project.build.directory}/generated-sources/bwl&lt;/generateDirectory&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>When I try using multiple <code>&lt;plugin&gt;</code>, just one of them is generated. I found that if I want to generate classes from multiple files, I should use <code>&lt;executions&gt;</code>. However when I wrap <code>&lt;configuration&gt;</code> into <code>&lt;executions&gt;</code>, it no longer generates, in fact it generates something from xsd file in the directory...</p>
  
  <p>My not working attempt:</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.12.3&lt;/version&gt;
  
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;bwl&lt;/id&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;generate&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                      &lt;schemaLanguage&gt;WSDL&lt;/schemaLanguage&gt;
                      &lt;schemaDirectory&gt;src/main/resources&lt;/schemaDirectory&gt;
                      &lt;schemaIncludes&gt;
                          &lt;include&gt;bwl_1_1.wsdl&lt;/include&gt;
                      &lt;/schemaIncludes&gt;
                      &lt;generatePackage&gt;bwl.wsdl&lt;/generatePackage&gt;
                      &lt;generateDirectory&gt;${project.build.directory}/generated-sources/bwl&lt;/generateDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
  
              &lt;execution&gt;
                  &lt;id&gt;score&lt;/id&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;generate&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                      &lt;schemaLanguage&gt;WSDL&lt;/schemaLanguage&gt;
                      &lt;schemaDirectory&gt;src/main/resources&lt;/schemaDirectory&gt;
                      &lt;schemaIncludes&gt;
                          &lt;include&gt;score_1_1.wsdl&lt;/include&gt;
                      &lt;/schemaIncludes&gt;
                      &lt;generatePackage&gt;score.wsdl&lt;/generatePackage&gt;
                      &lt;generateDirectory&gt;${project.build.directory}/generated-sources/score&lt;/generateDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
  
      &lt;/plugin&gt;
  </code></pre>
  
  <p>Thank you.</p>