[Maven] -DskipTests 와 -Dmaven.test.skip=true 간의 차이점
JAVA/Maven / 2012. 8. 30. 16:53
Recently came across this the existance of the -DskipTests argument while running maven.
From the userguide:
You can also skip the tests via command line by executing the following command:
mvn install -DskipTestsIf you absolutely must, you can also use the maven.test.skip property to skip compiling the tests. maven.test.skip is honored by Surefire, Failsafe and the Compiler Plugin.
mvn install -Dmaven.test.skip=true
Skiptests is a feature of surefire, while -Dmaven.test.skip is a feature of maven itself.
일단 스크랩... 나중에 정리해야지...
참고자료
http://www.inze.be/andries/2011/05/11/maven-difference-between-dskiptests-and-dmaven-test-skiptrue/