Skip to content

Instantly share code, notes, and snippets.

@skipperguy12
Last active January 1, 2016 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skipperguy12/17eb4dba70588913ce8d to your computer and use it in GitHub Desktop.
Save skipperguy12/17eb4dba70588913ce8d to your computer and use it in GitHub Desktop.
Maven install to local repository

Install-File

Includes a custom library in your local repository

Command: mvn install:install-file FLAGS:

-Dfile=your-artifact-1.0.jar \
[-DpomFile=your-pom.xml] \
[-Dsources=src.jar] \
[-Djavadoc=apidocs.jar] \
[-DgroupId=org.some.group] \
[-DartifactId=your-artifact] \
[-Dversion=1.0] \
[-Dpackaging=jar] \
[-Dclassifier=sources] \
[-DgeneratePom=true] \
[-DcreateChecksum=true]

Example:

mvn install:install-file -Dfile=location -DgroupId=com.mojang -DartifactId=AccountsClient -Dversion=latest -Dpackaging=jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment