Issue
I was trying to build hive-0.13.
When using -Dmaven.test.skip=true
, it will not build the test jars but it will check test dependency.
When using -DskipTests
, it will not build the test jars and also not check test dependency.
What's the difference between -DskipTests
and -Dmaven.test.skip=true
?
Solution
-DskipTests
compiles the tests, but skips running them
-Dmaven.test.skip=true
skips compiling the tests and does not run them
Also this one might be important
maven.test.skip is honored by Surefire, Failsafe and the Compiler Plugin
Answered By - Kamil Kłys
Answer Checked By - Candace Johnson (JavaFixing Volunteer)