You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Everett Toews (JIRA)" <ji...@apache.org> on 2014/04/29 18:36:17 UTC

[jira] [Created] (JCLOUDS-555) Duplicate bouncycastle resources when depending on MockWebServer

Everett Toews created JCLOUDS-555:
-------------------------------------

             Summary: Duplicate bouncycastle resources when depending on MockWebServer
                 Key: JCLOUDS-555
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-555
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-core
            Reporter: Everett Toews
            Assignee: Everett Toews
             Fix For: 1.8.0


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.

{code}
[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
{code}

We should exclude bcprov-jdk15on from mockwebserver dep at top-level pom.xml to avoid duplicate resources errors in child projects.



--
This message was sent by Atlassian JIRA
(v6.2#6252)