You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/10/14 07:28:21 UTC

[PR] Fix #13362: restore JUL root logger handlers after invocation [maven]

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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #13362: restore JUL root logger handlers after invocation [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on PR #13493:
URL: https://github.com/apache/maven/pull/13493#issuecomment-6163264746

   _Claude Code on behalf of Guillaume Nodet_
   
   Closing — this duplicates #13363 which is already merged.


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix #13362: restore JUL root logger handlers after invocation [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet closed pull request #13493: Fix #13362: restore JUL root logger handlers after invocation
URL: https://github.com/apache/maven/pull/13493


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org