Tuesday 5 February 2013

Different ways to Skip Maven Tests

 2 Different ways to skip tests with Maven.



  • mvn –o clean install  -DskipTests  - Use this to just avoid “RUNNING” the tests
  • mvn –o clean install –Dmaven.test.skip=true – Use this to avoid “BOTH COMPILE  & RUNNING” the tests.  (skip completely when tests have compilation errors)
 
  These 2 may appear to be the same, but they perform differently.

 

No comments:

Post a Comment