26 November 2008

Skipping Test execution phase in Maven

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