Saturday, December 12, 2015

Some helpful commands to build multi-module maven project tests

Build and execute tests from all the sub modules


  • mvn clean install

Build and execute tests from a specific sub module


  • mvn clean install -pl <module-name> -am

Build and execute a specific test from a specific sub module


  • mvn -DfailIfNoTests=false -Dtest=<test-class-name> clean install -pl <module-name> -am
  • mvn -DfailIfNoTests=false -Dtest=<test-class-name#test-method-name> clean install -pl <module-name> -am

No comments:

AWS Certified Solutions Architect Associate - AWS Introduction - Questions

All the Best !!! Show Result !! Try Again !! ×