Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can install the jar to your local repository using the install plugin's <a href="http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html" rel="nofollow noreferrer">install-file goal</a>, you can then declare a dependency on the artifact as normal, and it will be packaged into your war by the war plugin automatically.</p> <p>If you have a remote repository, you can use the deploy plugin's <a href="http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html" rel="nofollow noreferrer">deploy-file goal</a> to deploy the jar to that repository, then your teammates can access the jar as well.</p> <p>For information, there is a <a href="https://jira.jboss.org/jira/browse/JBSEAM-4234" rel="nofollow noreferrer">Jira</a> to make this artifact available on central.</p> <hr> <p>Update based on your comment. I'd recommend against doing this as it is not a good practice, but if you must host the jar in your project's source structure you can put it under say src/main/lib and use the antrun plugin to copy it to WEB-INF/lib.</p> <p>For example:</p> <pre><code> &lt;plugin&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;process-resources&lt;/phase&gt; &lt;configuration&gt; &lt;tasks&gt; &lt;copy todir="${project.build.directory}/WEB-INF/lib"&gt; &lt;fileset dir="src/main/lib"/&gt; &lt;/copy&gt; &lt;/tasks&gt; &lt;/configuration&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre>
    singulars
    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.
    2. VO
      singulars
      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