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

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

问题描述

我正在尝试构建 hive-0.13.

I was trying to build hive-0.13.

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

When using -Dmaven.test.skip=true, it will not build the test jars but it will check test dependency.

当使用-DskipTests时,它不会构建测试jar,也不会检查测试依赖.

When using -DskipTests, it will not build the test jars and also not check test dependency.

-DskipTests-Dmaven.test.skip=true 有什么区别?

推荐答案

Maven 文档:

-DskipTests 编译测试,但跳过运行它们

-DskipTests compiles the tests, but skips running them

-Dmaven.test.skip=true 跳过编译测试并且不运行它们

-Dmaven.test.skip=true skips compiling the tests and does not run them

这个也很重要

maven.test.skip 受到 Surefire、Failsafe 和编译器的认可插件

maven.test.skip is honored by Surefire, Failsafe and the Compiler Plugin

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

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