Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12692

Maven's DependencyConvergence rule failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-alpha1
    • None
    • None
    • None
    • Jenkins

    Description

      I am seeing a Maven warning in Jenkins:
      https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/761/console

      This nightly job failed because of a Maven rule failed

      [WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
      Failed while enforcing releasability the error(s) are [
      Dependency convergence error for org.apache.hadoop:hadoop-auth:3.0.0-SNAPSHOT paths to dependency are:
      +-org.apache.hadoop:hadoop-hdfs-httpfs:3.0.0-SNAPSHOT
        +-org.apache.hadoop:hadoop-auth:3.0.0-SNAPSHOT
      and
      +-org.apache.hadoop:hadoop-hdfs-httpfs:3.0.0-SNAPSHOT
        +-org.apache.hadoop:hadoop-common:3.0.0-SNAPSHOT
          +-org.apache.hadoop:hadoop-auth:3.0.0-SNAPSHOT
      and
      +-org.apache.hadoop:hadoop-hdfs-httpfs:3.0.0-SNAPSHOT
        +-org.apache.hadoop:hadoop-common:3.0.0-SNAPSHOT
          +-org.apache.hadoop:hadoop-auth:3.0.0-SNAPSHOT
      and
      +-org.apache.hadoop:hadoop-hdfs-httpfs:3.0.0-SNAPSHOT
        +-org.apache.hadoop:hadoop-auth:3.0.0-20160107.005725-7960
      ]
      
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (depcheck) on project hadoop-hdfs-httpfs: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
      

      Looks like httpfs depends on two versions of hadoop-auth: 3.0.0-SNAPSHOT and a timestamp based.

      I think this can be fixed by updating one of the pom.xml files. But I am not exactly sure how to do it. Need a Maven expert here.

      Attachments

        1. HADOOP-12692.001.patch
          0.5 kB
          Wei-Chiu Chuang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: