Builds the project and installs the resulting artifact into the local Maven repository:
mvninstall
Clears the target directory and builds the project and installs the resulting artifact into the local Maven repository:
mvncleaninstall
Clears the target directory, builds the project without running unit tests and installs the resulting artifact into the local Maven repository:
mvncleaninstall-Dmaven.test.skip=true
Builds the project and packages the resulting JAR file into the target directory:
mvnpackage
Clears the target directory, builds the project and packages the resulting JAR file into the target directory:
mvncleanpackage
Clears the target directory, builds the project and packages the resulting JAR file into the target directory without running the unit tests during the build:
mvncleanpackage-Dmaven.test.skip=true
Test management
Runs all integration tests:
mvnverify
Cleans the target directory and runs all integration tests:
mvncleanverify
Dependency management
Cleans project and copies dependencies from remote Maven repositories to the local Maven repository:
mvncleandependency:copy-dependencies
Prints out the dependency tree:
mvndependency:tree-Dverbose
Prints out the classpath needed to run:
mvndependency:build-classpath
To debug
Get verbose logs (add -X):
mvn-Xcleanverify
Thanks
Thanks to Jakob Jenkov for his work. Most of the info's on this page come from here