-DskipTests和-Dmaven.test.skip = true有什么区别? [英] What's the difference between -DskipTests and -Dmaven.test.skip=true

查看:557
本文介绍了-DskipTests和-Dmaven.test.skip = true有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当使用 -Dmaven.test.skip = true 时, ,它不会构建测试jar,但它会检查测试依赖。



当使用 -DskipTests 时,它会



-DskipTests 和<$ c之间有什么区别$ c> -Dmaven.test.skip = true ?

解决方案

Maven文档



-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?

解决方案

Maven docs:

-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

这篇关于-DskipTests和-Dmaven.test.skip = true有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆