You can skip executing the tests via command line by the following command:
mvn install -DskipTests
You can also skip executing of a specific unit test like that:
mvn -Dtest=\!com.example.ExampleTest#testName install
I know that you can also use the maven.test.skip
property to skip compiling the tests
mvn install -Dmaven.test.skip=true
Is there a way to skip compiling of a specific unit test from command line? In other words, I do not want a particular test to be included in a target folder (without deleting the test code, of course).