Author: svn-site-role
Date: Sat Jun 6 08:13:16 2020
New Revision: 1878534
Log:
Site checkin for project Apache Maven Site
Modified:
maven/website/content/guides/mini/guide-3rd-party-jars-local.html
maven/website/content/maven-site-1.0-site.jar
Modified: maven/website/content/guides/mini/guide-3rd-party-jars-local.html
==============================================================================
--- maven/website/content/guides/mini/guide-3rd-party-jars-local.html (original)
+++ maven/website/content/guides/mini/guide-3rd-party-jars-local.html Sat Jun
6 08:13:16 2020
@@ -145,19 +145,17 @@ Robert Scholte" />
<main id="bodyColumn" class="span10" >
<section>
<h2><a name="Guide_to_installing_3rd_party_JARs"></a>Guide to installing 3rd
party JARs</h2>
-<p>Although rarely, but sometimes you will have 3rd party JARs that you need
to put in your local repository for use in your builds, since they don't exist
in any public repository like <a class="externalLink"
href="http://search.maven.org">Maven Central</a>. The JARs must be placed in
the local repository in the correct place in order for it to be correctly
picked up by Apache Maven. To make this easier, and less error prone, we have
provide a goal in the <a
href="/plugins/maven-install-plugin/">maven-install-plugin</a> which should
make this relatively painless. To install a JAR in the local repository use the
following command:</p>
-<div class="source"><pre class="prettyprint linenums">
-mvn install:install-file -Dfile=<path-to-file>
-DgroupId=<group-id> \
- -DartifactId=<artifact-id> -Dversion=<version>
-Dpackaging=<packaging>
-</pre></div>
+<p>Although rarely, but sometimes, you will have 3rd party JARs that you need
to put in your local repository for use in your builds, since they don't exist
in any public repository like <a class="externalLink"
href="https://search.maven.org">Maven Central</a>. The JARs must be placed in
the local repository in the correct place in order for it to be correctly
picked up by Apache Maven.</p></section><section>
+<h2><a
name="To_make_this_easier.2C_and_less_error_prone.2C_we_have_provided_an_install-file_goal_in_the_maven-install-plugin_which_should_make_this_relatively_painless."></a>To
make this easier, and less error prone, we have provided an
<b>install-file</b> goal in the <a
href="/plugins/maven-install-plugin/">maven-install-plugin</a> which should
make this relatively painless. </h2></section><section>
+<h2><a
name="To_install_a_JAR_in_the_local_repository_use_the_following_command:"></a>To
install a JAR in the local repository use the following command:</h2>
+<div>
+<pre>mvn install:install-file -Dfile=<path-to-file>
-DgroupId=<group-id> -DartifactId=<artifact-id>
-Dversion=<version> -Dpackaging=<packaging></pre></div>
<p>If there's a pom-file as well, you can install it with the following
command:</p>
-<div class="source"><pre class="prettyprint linenums">
-mvn install:install-file -Dfile=<path-to-file>
-DpomFile=<path-to-pomfile>
-</pre></div>
-<p>With version 2.5 of the maven-install-plugin it gets even better. If the
JAR was built by Apache Maven, it'll contain a pom.xml in a subfolder of the
META-INF directory, which will be read by default. In that case, all you need
to do is:</p>
-<div class="source"><pre class="prettyprint linenums">
-mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file
-Dfile=<path-to-file>
-</pre></div></section>
+<div>
+<pre>mvn install:install-file -Dfile=<path-to-file>
-DpomFile=<path-to-pomfile></pre></div>
+<p>With version 2.5 of the maven-install-plugin, it can get even simpler: if
the JAR was built by Apache Maven, it'll contain a pom.xml in a subfolder of
the META-INF/ directory, which will be read by default. In that case, all you
need to do is:</p>
+<div>
+<pre>mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file
-Dfile=<path-to-file></pre></div></section>
</main>
</div>
</div>
Modified: maven/website/content/maven-site-1.0-site.jar
==============================================================================
Binary files - no diff available.