Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Raghuram gave me a push in the right direction. The way to get maven to take care of copying the jars automatically is to add this code inside the tag in the pom.xml file:</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-dependency-plugin&lt;/artifactId&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;outputDirectory&gt;${project.build.directory}&lt;/outputDirectory&gt; &lt;overWriteReleases&gt;false&lt;/overWriteReleases&gt; &lt;overWriteSnapshots&gt;true&lt;/overWriteSnapshots&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>More details on this can be found here: <a href="https://maven.apache.org/plugins/maven-dependency-plugin/usage.html" rel="nofollow noreferrer">https://maven.apache.org/plugins/maven-dependency-plugin/usage.html</a></p> <p>Getting maven to package the jars together would be nice, but this is good enough to answer this question. Related answers on stackoverflow:</p> <p><a href="https://stackoverflow.com/questions/1814526/problem-building-executable-jar-with-maven">Building executable jar with maven?</a></p> <p><a href="https://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven">How can I create an executable JAR with dependencies using Maven?</a></p>
 

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