|
mvn clean
|
Delete target folder in the project including submodule's ones
|
|
mvn clean compile
|
Compile all code without running any test
|
|
mvn clean test
|
Compile source code and test code and executes Unit Test
|
|
mvn clean package
|
Compile source code and test code, executes unit test, if all tests pass, it package compiled code in output archive
|
|
mvn clean verify
|
Compile source/test code, executes unit test, package compiled code and then executes Integration tests
|
|
mvn clean install
|
Executes full compile steps and, if all test are succesful, deploy the resulting artifact into local maven repository
|
|
mvn clean deploy
|
Executes full compile steps and, if all test are succesful, deploy the resulting artifact into local maven repository and deploy to remote maven repository if configured
|
|
mvn dependency:tree
|
Resolves and displays the dependency tree for this project including subomdules
|
|
mvn help:effective-pom
|
Resolves and display the full pom hierarcy and displays it as a single pom
|
|
-U
|
Re-evaluate SNAPSHOTS depenencies. If a newer snapshot is found on the repository it wull be re-downloded. Uneffective for stables versions
|
|
-Dmaven.test.skip=true
|
Skip test execution phase
|
|
-skipTests
|
Alias for -Dmaven.test.skip=true
|
|
-P${PROFILENAME}
|
Run the maven build with ${PROFILENAME} profile
|
|
-o
|
Offline mode, run the build as if no network connection is available
|
|
-pl ${MODULE1},${MODULE2}
|
Run the build just on the given list of submodule. It can be a comma separated list of submodules directory or groupsId:artifactId values
|
|
-s ${SETTINGS_XML_FILE}
|
Provides an alternative file for local settings. Default settings file is ~/.m2/settings.xml
|
|
Clean Lifecycle
|
Default Lifecycle
|
Site Lifecycle
|
|
|
pre-clean
|
validate
|
test-compile
|
pre-site
|
|
clean
|
initialize
|
process-test-classes
|
site
|
|
post-clean
|
generate-sources
|
test
|
post-site
|
|
process-sources
|
prepare-package
|
site-deploy
|
|
|
generate-resources
|
package
|
||
|
process-resources
|
pre-integration-test
|
||
|
compile
|
integration-test
|
||
|
process-classes
|
post-integration-test
|
||
|
generate-test-sources
|
verify
|
||
|
process-test-sources
|
install
|
||
|
generate-test-resources
|
deploy
|
||
|
process-test-resources
|
|||
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.