Skip to content

Instantly share code, notes, and snippets.

@derekbrameyer
Created February 15, 2012 16:13
Show Gist options
  • Save derekbrameyer/1836976 to your computer and use it in GitHub Desktop.
Save derekbrameyer/1836976 to your computer and use it in GitHub Desktop.
Adding a .jar to our internal repo
Make sure you've set up your .m2/settings.xml with appropriate creds:
mvn deploy:deploy-file -Dfile=path/to/jarfile.jar -DgroupId=com.blah.blah -DartifactId=artifactname -Dversion=x.x.x -Dpackaging=jar -DrepositoryId=wta.internal -Durl=http://maven.willowtreeapps.com/
Try to follow the .jar's package naming convention. For example, I did this for Urban Airship:
mvn deploy:deploy-file -Dfile=urbanairship-lib-1.0.7.jar -DgroupId=com.urbanairship.android -DartifactId=urbanairship-lib -Dversion=1.0.7 -Dpackaging=jar -DrepositoryId=wta.internal -Durl=http://maven.willowtreeapps.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment