Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you have a parent project with a module that is in this situation (requires a dependency not in a repository) you can setup your parent project to use the exec-maven-plugin plugin to auto-install your dependent file. For example, I had to do this with the authorize.net jar file since it is not publicly available. </p> <p>Parent POM: </p> <pre><code>&lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.2.1&lt;/version&gt; &lt;inherited&gt;false&lt;/inherited&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;install-anet&lt;/id&gt; &lt;phase&gt;validate&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;exec&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;configuration&gt; &lt;executable&gt;mvn&lt;/executable&gt; &lt;arguments&gt; &lt;argument&gt;install:install-file&lt;/argument&gt; &lt;argument&gt;-Dfile=service/lib/anet-java-sdk-1.4.6.jar&lt;/argument&gt; &lt;argument&gt;-DgroupId=net.authorize&lt;/argument&gt; &lt;argument&gt;-DartifactId=anet-java-sdk&lt;/argument&gt; &lt;argument&gt;-Dversion=1.4.6&lt;/argument&gt; &lt;argument&gt;-Dpackaging=jar&lt;/argument&gt; &lt;/arguments&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; </code></pre> <p>In the above example, the location of the jar is in the lib folder of the "service" module. </p> <p>By the time the service module enters the validate phase, the jar will be available in the local repository. Simply reference it in the way you set up the groupid, artifact, etc in the parent pom. For example: </p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;net.authorize&lt;/groupId&gt; &lt;artifactId&gt;anet-java-sdk&lt;/artifactId&gt; &lt;version&gt;1.4.6&lt;/version&gt; &lt;/dependency&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