title: XJC "Is not part of this compilation" issue
body: <p>I'm using the Maven JAXB2 Plugin to generate Java classes from my XSDs.</p>
  
  <p>For that, I use multiple executions as follows:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.2&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;xsd1&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;xjc&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;arguments&gt;
                      &lt;argument&gt;-b&lt;/argument&gt;
                      &lt;argument&gt;${basedir}/src/main/xjb/xsd1.xjb&lt;/argument&gt;
                  &lt;/arguments&gt;
                  &lt;sources&gt;
                      &lt;source&gt;${basedir}/src/main/xsd/xsd1.xsd&lt;/source&gt;
                  &lt;/sources&gt;  
              &lt;/configuration&gt;
          &lt;/execution&gt;
          &lt;execution&gt;
              &lt;id&gt;xsd2&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;xjc&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;arguments&gt;
                      &lt;argument&gt;-b&lt;/argument&gt;
                      &lt;argument&gt;${basedir}/src/main/xjb/xsd2.xjb&lt;/argument&gt;
                  &lt;/arguments&gt;
                  &lt;sources&gt;
                      &lt;source&gt;${basedir}/src/main/xsd/xsd2.XSD&lt;/source&gt;
                  &lt;/sources&gt;
                  &lt;clearOutputDir&gt;false&lt;/clearOutputDir&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>My XJBs:</p>
  
  <pre><code>&lt;jxb:bindings version="2.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
      schemaLocation="../xsd/xsd1.xsd" node="/xsd:schema"&gt;
      &lt;jxb:schemaBindings&gt;
          &lt;jxb:package name="com.example.xsd1" /&gt;
      &lt;/jxb:schemaBindings&gt;
      &lt;jxb:bindings node="//xsd:element[@name='Name']/xsd:complexType"&gt;
          &lt;jxb:class name="NameXsd1" /&gt;
      &lt;/jxb:bindings&gt;
  &lt;/jxb:bindings&gt;
  
  &lt;jxb:bindings version="2.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
      schemaLocation="../xsd/xsd2.xsd" node="/xsd:schema"&gt;
      &lt;jxb:schemaBindings&gt;
          &lt;jxb:package name="com.example.xsd2" /&gt;
      &lt;/jxb:schemaBindings&gt;
      &lt;jxb:bindings node="//xsd:element[@name='Name']/xsd:complexType"&gt;
          &lt;jxb:class name="NameXsd2" /&gt;
      &lt;/jxb:bindings&gt;
  &lt;/jxb:bindings&gt;
  </code></pre>
  
  <p>When I do a <code>mvn clean install</code> I get the following error:</p>
  
  <pre><code>[ERROR] file:/D:/Dev/myproject/src/main/xjb/xsd1.xjb [3,92] 
  com.sun.istack.SAXParseException2; systemId: file:/D:/Dev/myproject/src/main/xjb/xsd1.xjb; lineNumber: 3; columnNumber: 92; "file:/D:/Dev/myproject/src/main/xsd/xsd1.xsd" is not part of this compilation. Is it a mistake for "file:/D:/Dev/myproject/src/main/xsd/xsd2.xsd" ?
      at com.sun.tools.xjc.reader.internalizer.Internalizer.reportError(Internalizer.java:624)
      at com.sun.tools.xjc.reader.internalizer.Internalizer.reportError(Internalizer.java:618)
      at com.sun.tools.xjc.reader.internalizer.Internalizer.buildTargetNodeMap(Internalizer.java:261)
      at com.sun.tools.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:146)
      at com.sun.tools.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:107)
      at com.sun.tools.xjc.reader.internalizer.DOMForest.transform(DOMForest.java:439)
      at com.sun.tools.xjc.ModelLoader.buildDOMForest(ModelLoader.java:345)
      at com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:377)
      at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:174)
      at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:119)
      at com.sun.tools.xjc.Driver.run(Driver.java:354)
      at org.codehaus.mojo.jaxb2.javageneration.AbstractJavaGeneratorMojo.performExecution(AbstractJavaGeneratorMojo.java:402)
      at org.codehaus.mojo.jaxb2.AbstractJaxbMojo.execute(AbstractJaxbMojo.java:257)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>Thanks!</p>