If you just want to skip compilation of tests from cmd line use -Dmaven.test.skip=true
.
I should also point out that while maven.test.skip
will NOT compile any tests, it will, however, execute any compiled tests that made their way into the <testOutputDirectory>
.
Based on the documentation for skip from the maven-resources-plugin, the copying of test resources should be skipped by using the maven.test.skip
arg above.
Set this to 'true' to bypass copying of test resources. Its use is NOT
RECOMMENDED, but quite convenient on occasion. User property is:
maven.test.skip.