mvn clean build skip test code example Example 1: maven skip test mvn package -Dmaven.test.skip=true Example 2: how to skip test in maven Skipping tests in Maven