【发布时间】:2016-09-05 11:01:17
【问题描述】:
在 Jenkins 中,我有一个 Maven 项目,其结构如下:
x proftaakmaven
- AutosimulatieSysteem
- LandenMonitoringSysteem
- PolitieSysteem
x Verplaatsingssysteem
- VerplaatsingREST
- VerplaatsingSOAP
- VerplaatsingCommon
- VerplaatsingenRabbitMQ
- RabbitMQ-Proof-of-Concept
- VerplaatsingenRabbitMQTestClient
Maven 反应器构建这个构建顺序:
[INFO] Reactor Build Order:
[INFO]
[INFO] AutoSimulatie
[INFO] LandenMonitorSysteem
[INFO] PolitieSysteem
[INFO] VerplaatsingenSysteem
[INFO] VerplaatsingenCommon
[INFO] VerplaatsingenREST
[INFO] VerplaatsingenSOAP
[INFO] RabbitMQ-Proof-of-Concept
[INFO] VerplaatsingenRabbitMQ
[INFO] VerplaatsingenRabbitMQTestClient
[INFO] proftaakmaven
但是,由于“LandenMonitorSysteem”源代码当前出现故障,Maven 也无法构建其他模块。这会使 Jenkins 作业失败。
我尝试使用 --fail-never 和 --fail-at-end 运行 Maven。但似乎两者都没有任何效果。
即使一个模块失败了,我如何才能继续构建所有模块?
谢谢。
【问题讨论】:
标签: java maven jenkins build module