Code Snippet

Just another Code Snippet site

[Maven] Install external Library/JAR into local Maven repository

Without pom file :

mvn install:install-file -DgroupId=<your_group_name>  \
-DartifactId=<your_artifact_name>  \
-Dversion=<snapshot>  \
-Dfile=<path_to_your_jar_file>  \
-Dpackaging=jar \
-DgeneratePom=true

With a pom file :

mvn install:install-file -Dfile=<path-to-file> -DpomFile=<path-to-pomfile>


Comments are currently closed.