How to skip Maven unit tests

The unit tests run by Maven can be skipped by passing the parameter maven.test.skip to the command.

Syntax:

	 -Dmaven.test.skip=true 

Even if it is possible to skip the junit tests, it's always recommended to run them when compiling code.

References:

Maven

Share this article:

Recent Comments