ksrathod opened a new pull request, #14100: URL: https://github.com/apache/maven/pull/14100
Addresses #14019 for the 3.10.x line. Related work includes the provider change proposed in #14030 and the optional-bridge approach for `master` in #14038. On Maven 3.10.2, a downstream project depending on `maven-core` inherits `org.slf4j:jcl-over-slf4j:2.0.20` through `maven-resolver-provider`. The CLI distribution also declares the bridge directly, and Wagon HTTP 3.5.3 brings in its own copy transitively. This change supplies Apache Commons Logging 1.4.0 to the resolver provider and the distribution, excludes the bridge from the distribution's Wagon dependency, and adds it to the existing Enforcer ban. This keeps the JCL API available to HttpClient for embedded and CLI use. With the packaged Maven libraries, Commons Logging selects `Slf4jLogFactory` and writes through Maven's logger. ### Verification - Built all 16 reactor modules with `mvn -DdistributionFileName=apache-maven install` on JDK 21, using Resolver 2.0.26. Surefire and Failsafe reported 1,167 passing tests, eight skipped, and zero failures or errors. - Ran a downstream Enforcer check that bans `org.slf4j:jcl-over-slf4j` transitively. It fails with `maven-core:3.10.2` and passes with the locally installed `maven-core:3.10.3-SNAPSHOT`. - Inspected the assembled binary. Only `commons-logging-1.4.0.jar` provides `org/apache/commons/logging/LogFactory.class`. - Fetched previously uncached JARs from a local HTTP repository using the packaged CLI with both `-Dmaven.resolver.transport=native` and `-Dmaven.resolver.transport=wagon`. Both downloads returned HTTP 200 and matched the served SHA-256. A separate Java application using only the downstream Maven Core runtime classpath also fetched an identical JAR into an empty local repository. - Ran all three cases in the upstream `MavenITmng4428FollowHttpRedirectTest` against this distribution. HTTP, HTTPS, and relative redirects all passed. The full external Maven Core IT suite has not been run locally. OpenAI Codex assisted with the change and verification. - [ ] 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]
