Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Maven: mvn clean install --fail-at-end #33

Open
jwenjian opened this issue Jun 12, 2019 · 0 comments
Open

Maven: mvn clean install --fail-at-end #33

jwenjian opened this issue Jun 12, 2019 · 0 comments
Labels

Comments

@jwenjian
Copy link
Owner

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

https://maven.apache.org/guides/mini/guide-multiple-modules.html

For example, you have a project with 1 parent pom and several modules:

projects/

  • module_a/
    • pom.xml
  • module_b/
    • pom.xml
  • module_c/
    • pom.xml
  • pom.xml

Let's assume that the module_a is missing a.jar, module_c is missing c.jar.

When you execute command mvn clean install in the project folder, you will failed and know that module_a is missing a.jar.

You will not know that module_c has dependency issue because maven stoped continue building, so you fix the module_a's issue, run the command again, the module_c's issue is waiting for you, suprize!


With the command line option --fail-at-end, maven will continue the rest of the reactor and report all failed modules at the end, so that you can know that module_a and module_c both have dependency issue, module_a missing a.jar and module_c missing c.jar.

It's helpful!

But no suprize anymore, it's up to you 😈

@jwenjian jwenjian added the Maven label Jun 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant