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/06/04 23:38:41 UTC

[PR] Fix #11973: Restore backward-compatible DefaultToolchain constructor [maven]

gnodet opened a new pull request, #12238:
URL: https://github.com/apache/maven/pull/12238

   ## Summary
   
   Fixes #11973
   
   Custom toolchain implementations compiled against Maven 3.x call `DefaultToolchain(ToolchainModel, String, org.codehaus.plexus.logging.Logger)`, which was removed when Maven 4 switched to SLF4J. This causes `NoSuchMethodError` at runtime.
   
   This PR adds two deprecated backward-compatible constructors that accept the old Plexus `Logger` parameter and delegate to the existing SLF4J-based constructors.
   
   See also: https://github.com/apache/maven-toolchains-plugin/pull/152
   
   ## Test plan
   
   - [x] `mvn install -DskipTests` builds successfully
   - [ ] Run maven-toolchains-plugin ITs with custom toolchain (`use-custom-toolchain`)
   
   🤖 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 #11973: Restore backward-compatible DefaultToolchain constructor [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet closed pull request #12238: Fix #11973: Restore backward-compatible DefaultToolchain constructor
URL: https://github.com/apache/maven/pull/12238


-- 
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