-DskipTests和-Dmaven.test.skip = true有什么区别? [英] What's the difference between -DskipTests and -Dmaven.test.skip=true
问题描述
当使用 -Dmaven.test.skip = true
时, ,它不会构建测试jar,但它会检查测试依赖。
当使用 -DskipTests
时,它会
-DskipTests
和<$ c之间有什么区别$ c> -Dmaven.test.skip = true ?
-DskipTests
编译测试,但跳过它们运行它们
-Dmaven。 test.skip = true
跳过编译测试和不运行它们
另外这个可能很重要
maven.test.skip受到Surefire,Failsafe和编译器
blockquote>
插件的欢迎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
?解决方案
-DskipTests
compiles the tests, but skips running them
-Dmaven.test.skip=true
skips compiling the tests and does not run themAlso this one might be important
maven.test.skip is honored by Surefire, Failsafe and the Compiler Plugin
这篇关于-DskipTests和-Dmaven.test.skip = true有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!