gnodet commented on PR #13901:
URL: https://github.com/apache/maven/pull/13901#issuecomment-6736379859

   The CI failure is caused by maven-resolver 2.0.25 making `jcl-over-slf4j` 
optional in `transport-apache` (#2231). Apache HttpClient 5 uses 
`commons-logging`, which needs `jcl-over-slf4j` as a SLF4J bridge. Without it, 
`NoClassDefFoundError` is thrown during HttpClient initialization, which is 
caught at a site expecting `ArtifactResolutionException`, causing the 
`ClassCastException` in `RequestTraceTest` and `TestApiStandalone`.
   
   Fixed by adding `jcl-over-slf4j` explicitly:
   - `pom.xml`: added to `dependencyManagement`
   - `impl/maven-impl/pom.xml`: added as `test`-scoped dep (standalone test 
classpath)
   - `compat/maven-resolver-provider/pom.xml`: added as `runtime` dep 
(transport classpath)


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