title: No schemas have been found | XJC
body: <p>Can someone please help me on this issue. I have more than 2 schema files in the same directory and trying to generate the java classes using xjc in maven.</p>
  
  <p>Here is my pom.xml</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;${jaxb2.version}&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;xjc&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;xjc&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;clearOutputDir&gt;false&lt;/clearOutputDir&gt;
                          &lt;extension&gt;true&lt;/extension&gt;
                          &lt;schemaFiles&gt;${root.dir}/schemas/PnTCacheSchema.xsd&lt;/schemaFiles&gt;
                          &lt;schemaDirectory&gt;${root.dir}/schemas/&lt;/schemaDirectory&gt;
                          &lt;packageName&gt;com.superpages.nbt.gen.pnt&lt;/packageName&gt;
                          &lt;outputDirectory&gt;${root.dir}/nbt/src&lt;/outputDirectory&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;xjc1&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;xjc&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;clearOutputDir&gt;false&lt;/clearOutputDir&gt;
                          &lt;extension&gt;true&lt;/extension&gt;
                          &lt;schemaFiles&gt;${root.dir}/schemas/AdCacheSchema.xsd&lt;/schemaFiles&gt;
                          &lt;schemaDirectory&gt;${root.dir}/schemas/&lt;/schemaDirectory&gt;
                          &lt;packageName&gt;com.superpages.nbt.gen.cache&lt;/packageName&gt;
                          &lt;outputDirectory&gt;${root.dir}/nbt/src&lt;/outputDirectory&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>Getting this exception </p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc (default-cli) on project gypsygen: No schemas have been found -&gt; [Help 1]
  </code></pre>