I am using Maven 2.2.1 and to build my project I used this command
mvn clean install -Dmaven.test.skip=true
However, the build failed saying it couldn’t find one of the artifact. However, when I used:
mvn clean install -DskipTests
everything worked fine.
So far I have been thinking that these 2 commands are equivalent. However, this link seems to suggest that
-Dmaven.test.skip=true also skips compiling the test cases.
However, that still didn’t explain to me why one command is working and another is not. Will be thankful if anyone please explain this to me.