title: jaxb2-maven-plugin with external XSD dependencies
body: <p>We have a common set of XSDs (datatypes, vocabulary, etc.) we're generating with the jaxb2-maven-plugin in its own Maven project.  In a second project, I need to refer to one or more of those XSDs at compile time but don't want them included in the resulting artifact.  I've created a catalog file, which works fine except I get everything in it. </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;1.6&lt;/version&gt;
  &lt;executions&gt;
      &lt;execution&gt;
          &lt;goals&gt;
              &lt;goal&gt;xjc&lt;/goal&gt;
          &lt;/goals&gt;
      &lt;/execution&gt;
  &lt;/executions&gt;
  &lt;configuration&gt;
      &lt;outputDirectory&gt;${basedir}/src/main/java&lt;/outputDirectory&gt;
      &lt;target&gt;2.1&lt;/target&gt;
      &lt;catalog&gt;catalog.cat&lt;/catalog&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p></p>
  
  <p>I've pored over the <a href="http://mojo.codehaus.org/jaxb2-maven-plugin/usage.html" rel="nofollow">plugin docs</a>, but they're woefully light on detail.  Is there any way to get reuse out of common schemas without every project having to take a copy of them?</p>
  
  <p>Thanks</p>