Skip to content

Instantly share code, notes, and snippets.

@julianbonilla
Created February 8, 2012 15:33
Show Gist options
  • Save julianbonilla/1770502 to your computer and use it in GitHub Desktop.
Save julianbonilla/1770502 to your computer and use it in GitHub Desktop.
Install a JAR to a local Maven repository
# Template
mvn install:install-file -DgroupId= -DartifactId= -Dversion=1.0.0 -Dpackaging=jar -Dfile= -DgeneratePom=true
# Example
mvn install:install-file
-DgroupId=com.oracle
-DartifactId=ojdbc14
-Dversion=10.2.0.3.0
-Dpackaging=jar
-Dfile=ojdbc.jar
-DgeneratePom=true
# Reference
http://maven.apache.org/plugins/maven-install-plugin/usage.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment