如果一个模块发生故障,行军将继续 [英] maven force continue if one module fails

查看:38
本文介绍了如果一个模块发生故障,行军将继续的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个'master'pom文件,其中包含多个模块.我希望即使一个模块发生故障,maven也可以继续构建,而不是跳过其余的模块.我应该使用哪个选项/配置?谢谢

I have a 'master' pom file that includes multiple modules. I want maven to continue to build even if one module fails, instead of skipping the rest. Which option/configuration should I use? Thanks

推荐答案

在您的情况下,最后失败应该可以解决.

Fail at end should work in your scenario.

Maven规格的基本定义:

Basic Def from Maven Specs :

--fail-at-end - if a particular module build fails, continue the rest of the reactor
           and report all failed modules at the end instead .

这篇关于如果一个模块发生故障,行军将继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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