如何获得Maven-release-plugin跳过测试? [英] How can I get maven-release-plugin to skip my tests?
本文介绍了如何获得Maven-release-plugin跳过测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在不触发测试的情况下运行maven-release-plugin?
How can I get the maven-release-plugin to run without triggering the tests?
我尝试过
-Dmaven.test.skip=true
和
-DskipTests
和
-DpreparationGoals=clean
...却无济于事.
是的,我知道如果测试不通过,我就不应该发布,但我无法控制让我的同事编写可靠的测试.
Yes, I know I shouldn't release if the tests don't pass, but I don't have control over making my coworkers write reliable tests.
推荐答案
-Darguments="-DskipTests"
是您想要的,或者在pom中显式配置分叉的执行.
-Darguments="-DskipTests"
is what you want, or explicitly configuring the forked executions in the pom.
这篇关于如何获得Maven-release-plugin跳过测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文