- To view dependency tree:
mvn dependency:tree
- To skip running test:
mvn install -DskipTests
mvn install -DskipTests=true //to override skipTests property in pom
- To skip compiling and runing tests:
mvn install -Dmaven.test.skip=true
- To run maven in offline mode, to avoid downloading:
mvn -o install
mvn --offline install
- To force check for updates of snapshots and releases from remote repositories:
mvn -U install
mvn --update-snapshots install
- To list all maven profiles, and see which is the active profile:
mvn help:all-profiles
- To override maven surefire plugin forkMode:
mvn test -DforkMode=never
mvn test -DforkMode=always
source: http://javahowto.blogspot.com/search/label/Tools
Comments:
Email questions, comments, and corrections to hi@smartisan.dev.
Submissions may appear publicly on this website, unless requested otherwise in your email.