This is an automated email from the ASF dual-hosted git repository. hboutemy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-site.git
The following commit(s) were added to refs/heads/master by this push: new 4abc2c1 syntax color removal 4abc2c1 is described below commit 4abc2c10663473d6015578364149ab3cdc03302f Author: Hervé Boutemy <hbout...@apache.org> AuthorDate: Sat Jun 6 10:12:13 2020 +0200 syntax color removal --- .../apt/guides/mini/guide-3rd-party-jars-local.apt | 34 ++++++++++------------ 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/content/apt/guides/mini/guide-3rd-party-jars-local.apt b/content/apt/guides/mini/guide-3rd-party-jars-local.apt index c575512..2c66fb2 100644 --- a/content/apt/guides/mini/guide-3rd-party-jars-local.apt +++ b/content/apt/guides/mini/guide-3rd-party-jars-local.apt @@ -29,35 +29,31 @@ Guide to installing 3rd party JARs - 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 {{{http://search.maven.org}Maven Central}}. + 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 {{{https://search.maven.org}Maven Central}}. 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 - {{{/plugins/maven-install-plugin/}maven-install-plugin}} which should make this relatively painless. - To install a JAR in the local repository use the following command: + picked up by Apache Maven. -+----+ +To make this easier, and less error prone, we have provided an <<install-file>> goal in the + {{{/plugins/maven-install-plugin/}maven-install-plugin}} which should make this relatively painless. -mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \ - -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> +To install a JAR in the local repository use the following command: -+----+ +---- +mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> +---- If there's a pom-file as well, you can install it with the following command: -+----+ - +---- mvn install:install-file -Dfile=<path-to-file> -DpomFile=<path-to-pomfile> +---- -+----+ - - 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: - -+----+ + 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: +---- mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<path-to-file> - -+----+ +----