Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to "maven unpack-dependencies" to an absolute path?
    text
    copied!<p>How can I use the maven dependency plugin, unpack-dependecies goal to unpack to an absolute path, that is, NOT relative inside the generated target folder in the project tree? For example, I want to unpack the artifacts of the two dependencies below in /usr/local/*</p> <pre><code>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;package.org.apache.apr&lt;/groupId&gt; &lt;artifactId&gt;apr-bin&lt;/artifactId&gt; &lt;version&gt;1.4.6&lt;/version&gt; &lt;classifier&gt;bin&lt;/classifier&gt; &lt;type&gt;tar.gz&lt;/type&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;package.org.apache.apr-util&lt;/groupId&gt; &lt;artifactId&gt;apr-util-bin&lt;/artifactId&gt; &lt;version&gt;1.4.1&lt;/version&gt; &lt;classifier&gt;bin&lt;/classifier&gt; &lt;type&gt;tar.gz&lt;/type&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;build&gt; &lt;plugins&gt; &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.7&lt;/version&gt; &lt;executions&gt; &lt;!-- Unpack header files and libraries for build --&gt; &lt;execution&gt; &lt;id&gt;apr-bin-unpack&lt;/id&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;unpack-dependencies&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;excludeTransitive&gt;true&lt;/excludeTransitive&gt; &lt;!-- This element does NOT make a difference --&gt; &lt;outputdirectory&gt;/usr/local&lt;/outputdirectory&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload