Maven Commands
| Task | Link | Comments |
|---|---|---|
| Skip Maven Plugin | Link | Skip Maven plugin such as spotless, findbugs and spotbugs from execution |
| Skip Unit Test | – |
//Skip Unit test mvn clean install -DskipTests //Skip Unit Test for class mvn test -Dtest=TestClassName mvn test -Dtest=TestClassName1, TestClassName2 //Skip Unit Test by Method Name Pattern mvn test -Dtest=Test1#testFoo* //Run all Test except few mvn test -Dtest=!TestClassName1 |
| Skip unit test in specific Packages | Link | – |
| Run Unit test in Parallel | – |
mvn clean install -T 4 |
| Display Maven Dependencies | – |
mvn dependency:tree |
| Display Effective POM | – |
mvn help:effective-pom Command displays plugins imported by default from parent pom.xml |
| execute life cycle task using specific plugin | – |
mvn groupID:artifactID:version:goal mvn org.apache.maven.plugins:maven-checkstyle-plugin:2.5:checkstyle |
Windows Commands