title: Getting Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc (default-cli)
body: <p>I have an XSD file and I'm trying to generate jaxb classes for that using jaxb2-maven plugin, the problem I generate the classes running the command <code>mvn jaxb2:xjc</code> in command line. If I run the same command as goal in run configuration in eclipse I get </p>
  
  <blockquote>
    <p>Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc
    (default-cli)</p>
  </blockquote>
  
  <p>If I only run <code>mvn clean package install</code> the classes are not getting generated. What am I doing wrong?</p>
  
  <p>Here is my part of 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;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;schemaDirectory&gt;${project.basedir}/src/main/resources&lt;/schemaDirectory&gt;
      &lt;schemaFiles&gt;Trans.xsd&lt;/schemaFiles&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>