Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not sure to understand why you need to do this but I see two points here:</p> <ol> <li>Avoiding dependencies to get copied into <code>WEB-INF/lib</code> (if not, then just skip the part related to 1.)</li> <li>Getting them copied to another directory.</li> </ol> <p>For 1. I'm assuming you need the dependencies (because you want to compile against them) but if you don't want the Maven War Plugin to copy them in <code>WEB-INF/lib</code>, you'll have to play with their <code>scope</code>, for example by declaring them as provided.</p> <p>For 2. the Maven Dependency Plugin will be helpful here and I think you could use <a href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html" rel="nofollow noreferrer"><code>dependency:copy-dependencies</code></a>, for example during the <code>pre-package</code> phase. Use it like this:</p> <pre><code>&lt;project&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;executions&gt; &lt;execution&gt; &lt;id&gt;copy-dependencies&lt;/id&gt; &lt;phase&gt;pre-package&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;copy-dependencies&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;!-- configure the plugin here --&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; [...] &lt;/project&gt; </code></pre> <p>And configure the <a href="http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#outputDirectory" rel="nofollow noreferrer"><code>outputDirectory</code></a> (and other parameters you could need).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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