Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
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.