Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5456

Maven skips modules and reports success if parallel build encounters java.lang.Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 3.1.0-alpha-1
    • Bootstrap & Build
    • None

    Description

      If Mojo throws instance of java.lang.Error during the parallel build (for example, OutOfMemoryError), Maven marks module as "SKIPPED", skips the rest of the modules and reports "BUILD SUCCESSFUL". This is very confusing and dangerous behavior.

      The root cause is that exception coming from executor service is swallowed at line 133 in the org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder.

      Note that this only happens if parallel build is enabled.

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            wfrag Ivan Dubrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: