title: maven-compiler-plugin how to change the classes destination directory
body: <p>By default the maven compiler plugin put the compiled classes into <code>${project.build.directory}/classes</code>. I want to put them into <code>${project.build.directory}/myclasses</code>. The argument <code>-d</code> changes the destination of the compiled classes. I configured the plugin but I got an error: <code>javac: directory not found: C:\home\target/myclasses</code>.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.3.2&lt;/version&gt;
      &lt;configuration&gt;
          &lt;source&gt;1.5&lt;/source&gt;
          &lt;target&gt;1.5&lt;/target&gt;
          &lt;showDeprecation&gt;true&lt;/showDeprecation&gt;
          &lt;compilerArguments&gt;
              &lt;d&gt;${project.build.directory}/myclasses&lt;/d&gt;
          &lt;/compilerArguments&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>