gnodet opened a new pull request, #13493: URL: https://github.com/apache/maven/pull/13493
## Summary - Save the `java.util.logging` root logger's handlers before `activateLogging()` installs `SLF4JBridgeHandler`, and restore them in the `finally` block of `LookupInvoker.invoke()` - Prevents `NoClassDefFoundError: org/slf4j/Logger` in the host process when Maven runs embedded (IDEs, CI tooling, the Verifier) and the bridge handler is left on the root logger after Maven's class realm is closed - Adds `MavenInvokerTest.restoresJavaUtilLoggingRootHandlers` to verify the handlers are restored ## Test plan - [ ] `MavenInvokerTest.restoresJavaUtilLoggingRootHandlers` passes - [ ] Existing `MavenInvokerTest` tests still pass - [ ] Embedded Maven invocations (Verifier, IDE tooling) no longer leave a stale `SLF4JBridgeHandler` 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
