Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
If you add the mockwebserver dep to a module that already has a transitive dep on bcprov-ext-jdk15on you'll get the error "Found duplicate (but equal) resources in [org.bouncycastle:bcprov-ext-jdk15on:1.49,org.bouncycastle:bcprov-jdk15on:1.48]"
Doing a `mvn dependency:tree` reveals the problem.
[INFO] +- com.squareup.okhttp:mockwebserver:jar:1.3.0:test [INFO] | +- com.squareup.okhttp:okhttp-protocols:jar:1.3.0:test [INFO] | \- org.bouncycastle:bcprov-jdk15on:jar:1.48:test ... [INFO] +- org.apache.jclouds.driver:jclouds-sshj:jar:1.8.0-SNAPSHOT:test [INFO] | +- org.apache.jclouds.driver:jclouds-bouncycastle:jar:1.8.0-SNAPSHOT:test [INFO] | | \- org.bouncycastle:bcprov-ext-jdk15on:jar:1.49:test
We should exclude bcprov-jdk15on from mockwebserver dep at top-level pom.xml to avoid duplicate resources errors in child projects.