Skip to content

Instantly share code, notes, and snippets.

@jgcasta
Created May 11, 2013 20:18
Show Gist options
  • Save jgcasta/5561288 to your computer and use it in GitHub Desktop.
Save jgcasta/5561288 to your computer and use it in GitHub Desktop.
Maven Cheat Sheet
Install an external dependency into the local repository
$ mvn install:install-file -Dfile=<path-to-file> -DgroupId=Id=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
Generate a package
$ mvn package
Install into the local repository
$ mvn install
Deploy into remote repository
$ mvn deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment