Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-699

Dependency is relying on system dependency jdk:tools:1.X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Do
    • 0.4.0
    • None
    • metrics
    • None

    Description

      Ratis-Metric is depending on the dependency com.github.joshelser:dropwizard-metrics-hadoop-metrics2-reporter: 0.1.2. This in turn depends on the org.apache.hadoop:hadoop-common:2.6.0. This in turn depends on org.apache.hadoop:hadoop-annotations:2.6.0 which have an dependency on a system scoped dependency named jdk.tools:1.6. I'm running java 11 and this dependency doesn't exist in my environment so I can't compile with ratis included in my project because it fails trying to resolve that dependency.

      However, the project ratis-hadoop depends on the the dependency org.apache.hadoop:hadoop-common:3.1.1 (which should be upgraded to 3.1.2 because the sources are missing in 3.1.1) which doesn't have the jdk.tools:1.6 dependency. So if I depend on this I can build the project because the faulty 2.6.0 dependency is shadowed transitively by the 3.1.1 dependency and everything is compiling.

      The simple fix would be updating so ratis-metric is depending directly on the 3.1.2 dependency instead since it effectively will be the 3.1.1 code you are going run with anyway when running with the ratis-hadoop dependency.

      Attachments

        1. RATIS-699.03.patch
          2 kB
          Henrik Hegardt
        2. tree_new
          82 kB
          Henrik Hegardt
        3. tree_orig
          74 kB
          Henrik Hegardt

        Issue Links

          Activity

            People

              hheg Henrik Hegardt
              hheg Henrik Hegardt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: