Sconti Amazon fino al 60
Regalaci un Like sulla nostra pagina, a te non costa nulla. Grazie.

In this guide I will explain how to install a jar through Apache Maven.

Set JAVA environment

Set the JAVA_HOME environment variable to point to the base directory location where Java is installed on your machine. For example:

Set the environment variable JAVA_HOME to C:\Program Files\Java\jdk1.6.0_21

Set environment variable

Append Maven location to System Path. For example:

Append the string ;C:\Program Files\Apache Software Foundation\apache-maven-2.2.1\bin to the end of the system variable, Path.

Check

Open a prompt and run this:

mvn --version

If setup is correct it will dispay maven version.
Install Jar

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>

Lascia una risposta

Please enter your comment!
Please enter your name here