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

   Addresses #14019 on `maven-3.10.x`.
   
   On Maven 3.10.2, an application that depends on `maven-core` inherits 
`jcl-over-slf4j:2.0.20` through `maven-resolver-provider`. The CLI also 
declares the bridge directly, and Wagon HTTP 3.5.3 brings it in transitively.
   
   This patch supplies Commons Logging 1.4.0 to the resolver provider and the 
CLI. It excludes the bridge from Wagon HTTP and adds it to the existing 
Enforcer rule to catch future regressions. Apache HttpClient keeps the JCL API 
it needs, and Commons Logging routes messages through Maven's SLF4J logger.
   
   ### Verification
   
   - All 16 reactor modules built on JDK 21 with Resolver 2.0.26. There were 
1,167 passing tests, eight skipped, and zero failures or errors.
   - A downstream project banning `org.slf4j:jcl-over-slf4j` failed against 
`maven-core:3.10.2` and passed against the patched `3.10.3-SNAPSHOT`.
   - The packaged CLI fetched uncached JARs through both native HTTP and Wagon. 
Both downloads matched the served SHA-256. An embedded Maven Core application 
also fetched a JAR into an empty local repository.
   - In the binary distribution, only `commons-logging-1.4.0.jar` provides 
`org/apache/commons/logging/LogFactory.class`. Logging selected 
`Slf4jLogFactory`.
   - All three cases in the upstream `MavenITmng4428FollowHttpRedirectTest` 
passed against the packaged CLI. The full external Core IT suite was not run 
locally.
   
   - [x] I hereby declare this contribution to be licensed under the [Apache 
License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).


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

Reply via email to