title: An internal error occurred during: "Building"
body: <p>After adding a plugin to my pom.xml I am getting this error.</p>
  
  <blockquote>
    <p>An internal error occurred during: "Building".
    java.lang.reflect.InvocationTargetException</p>
  </blockquote>
  
  <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;id&gt;xjc&lt;/id&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;outputDirectory&gt;${project.basedir}/src/main/java&lt;/outputDirectory&gt;
          &lt;clearOutputDir&gt;false&lt;/clearOutputDir&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>