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

Ted Yu commented on HBASE-21198:
--------------------------------

bq. Where did it come in?

json-smart comes in as transitive dependency:
{code}
[INFO] |  \- org.apache.hadoop:hadoop-auth:jar:3.0.0:compile
[INFO] |     +- com.nimbusds:nimbus-jose-jwt:jar:4.41.1:compile
[INFO] |     |  +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
[INFO] |     |  \- net.minidev:json-smart:jar:2.3:compile (version selected 
from constraint [1.3.1,2.3])
{code}
bq. Why did it come in?

For hadoop-2.0 profile in hbase-client/pom.xml , we have:
{code}
        <dependency>
          <groupId>org.apache.hadoop</groupId>
          <artifactId>hadoop-auth</artifactId>
        </dependency>
{code}
The transitive dependency on json-smart seems not needed.
bq. Was it a mistake?
If you meant introducing the dependency transitively was a mistake, I would 
agree.

> Exclude dependency on net.minidev:json-smart
> --------------------------------------------
>
>                 Key: HBASE-21198
>                 URL: https://issues.apache.org/jira/browse/HBASE-21198
>             Project: HBase
>          Issue Type: Task
>            Reporter: Ted Yu
>            Priority: Major
>
> From 
> https://builds.apache.org/job/PreCommit-HBASE-Build/14414/artifact/patchprocess/patch-javac-3.0.0.txt
>  :
> {code}
> [ERROR] Failed to execute goal on project hbase-common: Could not resolve 
> dependencies for project org.apache.hbase:hbase-common:jar:3.0.0-SNAPSHOT: 
> Failed to collect dependencies at org.apache.hadoop:hadoop-common:jar:3.0.0 
> -> org.apache.hadoop:hadoop-auth:jar:3.0.0 -> 
> com.nimbusds:nimbus-jose-jwt:jar:4.41.1 -> 
> net.minidev:json-smart:jar:2.3-SNAPSHOT: Failed to read artifact descriptor 
> for net.minidev:json-smart:jar:2.3-SNAPSHOT: Could not transfer artifact 
> net.minidev:json-smart:pom:2.3-SNAPSHOT from/to dynamodb-local-oregon 
> (https://s3-us-west-2.amazonaws.com/dynamodb-local/release): Access denied 
> to: 
> https://s3-us-west-2.amazonaws.com/dynamodb-local/release/net/minidev/json-smart/2.3-SNAPSHOT/json-smart-2.3-SNAPSHOT.pom
>  , ReasonPhrase:Forbidden. -> [Help 1]
> {code}
> We should exclude dependency on net.minidev:json-smart
> hbase-common/bin/pom.xml has done so.
> The other pom.xml should do the same.



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

Reply via email to