[ 
https://issues.apache.org/jira/browse/HDDS-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16656265#comment-16656265
 ] 

Tsz Wo Nicholas Sze commented on HDDS-691:
------------------------------------------

Hi [~elek], below are the rationale behind the patch 
- First of all, the hadoop-common dependency in hadoop-hdds/common/pom.xml is 
obviously redundant since the parent hadoop-hdds/pom.xml already has it.
- From the dependency convergence error, the grandparent 
hadoop-project-dist/pom.xml already has the hadoop-annotations dependency.   
hadoop-hdds/common/pom.xml gets hadoop-annotations again from the hadoop-common 
dependency.  If we set the scope to "provided" for hadoop-common in 
hadoop-hdds/common/pom.xml, the dependency becomes non-transitive so that it 
won't get hadoop-annotations again.

BTW, the hadoop-common dependency in hadoop-hdfs/pom.xml is also "provided". We 
probably should do the same for hadoop-hdds?

> Dependency convergence error for org.apache.hadoop:hadoop-annotations
> ---------------------------------------------------------------------
>
>                 Key: HDDS-691
>                 URL: https://issues.apache.org/jira/browse/HDDS-691
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Major
>         Attachments: HDDS-691_20181018.patch
>
>
> {code}
> [WARNING] 
> Dependency convergence error for 
> org.apache.hadoop:hadoop-annotations:3.3.0-SNAPSHOT paths to dependency are:
> +-org.apache.hadoop:hadoop-hdds-common:0.4.0-SNAPSHOT
>   +-org.apache.hadoop:hadoop-common:3.3.0-20181017.235917-140
>     +-org.apache.hadoop:hadoop-annotations:3.3.0-SNAPSHOT
> and
> +-org.apache.hadoop:hadoop-hdds-common:0.4.0-SNAPSHOT
>   +-org.apache.hadoop:hadoop-common:3.3.0-20181017.235917-140
>     +-org.apache.hadoop:hadoop-annotations:3.3.0-SNAPSHOT
> and
> +-org.apache.hadoop:hadoop-hdds-common:0.4.0-SNAPSHOT
>   +-org.apache.hadoop:hadoop-annotations:3.3.0-20181017.235840-140
> [WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence 
> failed with message:
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to