title: maven-jaxb2-plugin multiple schemas in different packages Error
body: <p>I have a problem with <code>maven-jaxb2-plugin</code> . 
  What I am trying to achieve is to generate-sources from x different wsdl's into different packages. </p>
  
  <p>I would like to avoid method with multiple <code>&lt;execution&gt;</code> so I could leave pom.xml untouched when I add another wsdl.</p>
  
  <p>I configured maven plugin 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.1&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&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/webservice/wsdl&lt;/schemaDirectory&gt;
                      &lt;schemaIncludes&gt;
                          &lt;include&gt;orig/*.wsdl&lt;/include&gt;
                      &lt;/schemaIncludes&gt;
  
                      &lt;bindingDirectory&gt;src/main/resources/webservice/xjb&lt;/bindingDirectory&gt;
                      &lt;bindingIncludes&gt;
                          &lt;include&gt;orig/*.xjb&lt;/include&gt;
                      &lt;/bindingIncludes&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>In my understanding, this way I specified .wsdl locations as well as binding files locations. </p>
  
  <p>Now in a example binding file (all of them are constructed the same way) I got following code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jaxb:bindings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xs="http://www.w3.org/2001/XMLSchema" 
      xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
      xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd"
      xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" 
      jaxb:version="2.1"&gt;
  
  
      &lt;jaxb:bindings schemaLocation="../../wsdl/orig/soap1.wsdl"
          node="*/xs:schema"&gt;
  
          &lt;jaxb:schemaBindings&gt;
              &lt;jaxb:package name="my.package.com.soap1" /&gt;
          &lt;/jaxb:schemaBindings&gt;
      &lt;/jaxb:bindings&gt;
  
  &lt;/jaxb:bindings&gt;
  </code></pre>
  
  <p>Another services are soap2, soap3 etc. all of them have similar binding files. If i understand this correct, thanks to that connfig i should be able to generate domain objects for my soap's each in separate package.</p>
  
  <p>But when i run <code>maven clean compile</code> i got the following output:</p>
  
  <pre><code>[ERROR] Error while parsing schema(s).Location [ file:/C:/Users/me/workspace/orig-project/src/main/resources/webservice/wsdl/orig/soap1.wsdl{202,39}].
  org.xml.sax.SAXParseException; systemId: file:/C:/Users/me/workspace/orig-project/src/main/resources/webservice/wsdl/orig/soap1.wsdl; lineNumber: 202; columnNumber: 39; 'Line' **is already defined**
  </code></pre>
  
  <p>What is more, for testing purposes I have tried configuring plugin to process each wsdl in separate <code>&lt;execution&gt;</code> (I want to avoid that in final code) and what i observed is that after first ex. soap1.wsdl was processed, the package was properly created but other soap.wsdl's packages wasn't created at all. (only first was processed).</p>
  
  <p><strong>What is wrong with that, and if it is possible to achieve what I want?</strong></p>
  
  <p><strong>UPDATE:</strong>
  To clarify what I want to achieve I will post there solution that is working for me, but it forces me to edit POM every time I add new webservice:</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.1&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;soap1&lt;/id&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;generate&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
  
                      &lt;schemaDirectory&gt;src/main/resources/webservice/wsdl&lt;/schemaDirectory&gt;
                      &lt;schemaIncludes&gt;
                          &lt;include&gt;Soap1.wsdl&lt;/include&gt;
                      &lt;/schemaIncludes&gt;
                      &lt;generatePackage&gt;my.package.com.soap1&lt;/generatePackage&gt;
                  &lt;/configuration&gt;
          &lt;/execution&gt;
  
          &lt;execution&gt;
              &lt;id&gt;soap2&lt;/id&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;generate&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;schemaDirectory&gt;src/main/resources/webservice/wsdl&lt;/schemaDirectory&gt;
                  &lt;schemaIncludes&gt;
                      &lt;include&gt;Soap2.wsdl&lt;/include&gt;
                  &lt;/schemaIncludes&gt;
                  &lt;generatePackage&gt;my.package.com.soap2&lt;/generatePackage&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
  
          &lt;execution&gt;
              &lt;id&gt;soap3&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;generate&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
              &lt;schemaDirectory&gt;src/main/resources/webservice/wsdl&lt;/schemaDirectory&gt;
                  &lt;schemaIncludes&gt;
                      &lt;include&gt;Soap3.wsdl&lt;/include&gt;
                  &lt;/schemaIncludes&gt;
              &lt;bindingDirectory&gt;src/main/resources/webservice/xjb&lt;/bindingDirectory&gt;
                  &lt;bindingIncludes&gt;
                      &lt;include&gt;soap3.xjb&lt;/include&gt;
                  &lt;/bindingIncludes&gt;
              &lt;generatePackage&gt;my.package.com.soap3&lt;/generatePackage&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>It looks like (maybe?) there is some problem with: </p>
  
  <pre><code>&lt;jaxb:schemaBindings&gt;
                  &lt;jaxb:package name="my.package.com.soap1" /&gt;
  &lt;/jaxb:schemaBindings&gt;
  </code></pre>
  
  <p>in my first (and wanted) solution. Any ideas?</p>