Home > Development > How to skip test execution phase in Maven

How to skip test execution phase in Maven

Though it is considered not a good practice to skip tests execution, in few scenarios we may want to skip the execution of tests in Maven. [For example when the execution of tests need special setup which may not be available to the build machine.]

we can use the following command which mentions the argument maven.test.skip to skip test execution phase.

mvn -Dmaven.test.skip=true clean install
  • Share/Bookmark
Categories: Development Tags:
  1. No comments yet.
  1. No trackbacks yet.