maven-dependency-plugin ignores outputDirectory configuration
<p>I want to create a jar file with my main java project and all of it's dependencies. so I created the following plugin definition in the pom file:</p>

<pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.5.1&lt;/version&gt;
    &lt;executions&gt;
        &lt;execution&gt;
            &lt;id&gt;copy-dependencies&lt;/id&gt;
            &lt;phase&gt;package&lt;/phase&gt;
            &lt;goals&gt;
                &lt;goal&gt;copy-dependencies&lt;/goal&gt;
            &lt;/goals&gt;
            &lt;configuration&gt;
                &lt;!-- exclude junit, we need runtime dependency only --&gt;
                &lt;includeScope&gt;runtime&lt;/includeScope&gt;
                &lt;outputDirectory&gt;${project.build.directory}/dependency-jars/&lt;/outputDirectory&gt;
            &lt;/configuration&gt;
        &lt;/execution&gt;
    &lt;/executions&gt;
&lt;/plugin&gt;
</code></pre>

<p>so I execute <code>mvn dependency:copy-dependencies</code>, it works fine that it copies all the dependencies to <code>target/dependency</code> instead of <code>dependency-jars</code>. Any ideas?</p>