Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-555

Duplicate bouncycastle resources when depending on MockWebServer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • jclouds-core
    • 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.

      Attachments

        Activity

          People

            gaul Andrew Gaul
            everett-toews Everett Toews
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: