elharo opened a new issue, #12593:
URL: https://github.com/apache/maven/issues/12593
# LifecycleStarter implementations silently swallow RuntimeException
**Found in:** maven-4.0.x branch
**Files:**
-
`impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleStarter.java`
(line 88)
-
`impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/ConcurrentLifecycleStarter.java`
(line 67)
**Severity:** High
## Description
Both lifecycle starter implementations catch all exceptions, including
`RuntimeException` and `Error`, and silently add them to the result without
rethrowing:
```java
} catch (Exception e) {
result.addException(e); // RuntimeException NOT rethrown
}
```
This means `NullPointerException`, `ArrayIndexOutOfBoundsException`, and
other programming errors are silently recorded but the build continues as if
nothing happened (or terminates normally with errors in the result). The caller
has no way to distinguish between a recoverable build error and a JVM-level
programming error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]