title: Maven changing output directory for jar doesn't work
body: <p>I build my project with <code>mvn clean install</code>, however I want to generate a subfolder in the target folder and put the generated jar file in there. I saw these two questions <a href="https://stackoverflow.com/questions/4757426/maven-specify-the-outputdirectory-only-for-packaging-a-jar">Maven: specify the outputDirectory only for packaging a jar?</a> and <a href="https://stackoverflow.com/questions/6689511/maven-how-to-place-the-output-jar-into-another-folder">maven: how to place the output jar into another folder</a> however their answer doesn't seem to work.</p>
  
  <p>This is how my maven build looks like:</p>
  
  <pre><code>   &lt;build&gt;
          &lt;plugins&gt;       
              &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.3.1&lt;/version&gt;
                &lt;configuration&gt;
                  &lt;outputDirectory&gt;${project.build.directory}/blah&lt;/outputDirectory&gt;
                &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p>However I get the .jar file still in target directory. I also noticed that the project packaging is set as <code>&lt;packaging&gt;eclipse-plugin&lt;/packaging&gt;</code> if I change this to jar, then it works fine, however I do need it to be <code>eclipse-plugin</code>. I am also using <code>tycho</code> for the eclipse plugin. Am I missing something that was not mentioned before?</p>