maven force continue if one module fails

Maven

Maven Problem Overview


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

Maven Solutions


Solution 1 - Maven

Fail at end should work in your scenario.

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 .
                

Solution 2 - Maven

You can use the command line option:

--fail-at-end

should be your friend.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEyeQ TechView Question on Stackoverflow
Solution 1 - MavensauravView Answer on Stackoverflow
Solution 2 - MavenkhmarbaiseView Answer on Stackoverflow