gnodet commented on PR #14038: URL: https://github.com/apache/maven/pull/14038#issuecomment-7193832094
Closing in favour of #14110 which provides a complete fix on the correct branch. This PR has three fundamental issues that make it unsuitable as-is: 1. **Incomplete fix** — making `jcl-over-slf4j` optional in `compat/maven-resolver-provider` only prevents transitive propagation to external consumers. The jar still ships in Maven's distribution via the direct `<scope>runtime</scope>` declaration in `apache-maven/pom.xml`, so downstream projects would still see it on the classpath. 2. **Wrong approach** — the compat module has zero `org.apache.commons.logging` imports, so the dependency should be **removed entirely** (or replaced with `commons-logging`) rather than marked optional. Making something optional that nothing in the module uses is misleading. 3. **Wrong branch** — the issue is reported against Maven 3.10.x. This PR targets `master` (4.x). The `compat/maven-resolver-provider` module is `@Deprecated(since = "4.0.0")`, and the right flow is to fix 3.x first, then port forward. PR #14110 addresses all three points on `maven-3.10.x` with a proper replacement of all three `jcl-over-slf4j` occurrences by `commons-logging:1.4.0`, plus an Enforcer ban to prevent regression. A follow-up for `master` will be needed to mirror that change in `compat/maven-resolver-provider` and `apache-maven`. Thank you for looking at this — the fix direction in #14110 is the right one. -- 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]
