Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含多个模块的“主”pom 文件。即使一个模块失败,我希望 maven 继续构建,而不是跳过其余模块。我应该使用哪个选项/配置?谢谢
最终失败应该适用于您的场景。
来自 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 .
您可以使用命令行选项:
--fail-at-end
应该是你的朋友。