Skip to content

Instantly share code, notes, and snippets.

@ebridges
Created February 26, 2013 18:56
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 ebridges/5041041 to your computer and use it in GitHub Desktop.
Save ebridges/5041041 to your computer and use it in GitHub Desktop.
Install an artifact into a local repo
#!/bin/bash
jarfile=
groupId=
artifactId=
version=
localRepo=
packaging=jar
createChksum=true
generatePom=true
mvn install:install-file \
-Dfile=${jarfile} \
-DgroupId=${groupId} \
-DartifactId=${artifactId} \
-Dversion=${version} \
-Dpackaging=${packaging} \
-DcreateChecksum=${createChksum} \
-DgeneratePom=${generatePom} \
-DlocalRepositoryPath=${localRepo}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment