Re: Maven provided dependency for child Questions

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Maven provided dependency for child Questions

Hervé BOUTEMY
I think we need to have a sample project to be able to see the full tree, and
not only the part on phoenix-core dependency

but I already have one fact to share: the issue happens not only on httpclient
but also on junit:

[INFO] |  +- junit:junit:jar:4.12:compile
[INFO] |  |  \- org.hamcrest:hamcrest-core:jar:1.3:compile
...
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.0.1:compile

perhaps this would be a corner case on test dependencies are impacted by
provided scope

Regards,

Hervé

Le vendredi 4 janvier 2019, 20:59:09 CET Milan Das a écrit :

> Hello All,
> I have added provided dependency as below
>
>
>         <dependency>
>             <groupId>org.apache.phoenix</groupId>
>             <artifactId>phoenix-core</artifactId>
>             <version>${phoenix-provided.version}</version>
>             <scope>provided</scope>
>         </dependency>
>
>
>
> But when I am run (mvn dependency:tree) . I see some child libraries are
> converted to scope as compile as below ([INFO] |  +-
> org.apache.httpcomponents:httpclient:jar:4.0.1:compile). This is causing
> library conflicts. Wondering why maven is doing that ?
>
>
> [INFO] +- org.apache.phoenix:phoenix-core:jar:4.10.0-HBase-1.1:provided
> [INFO] |  +- org.apache.tephra:tephra-api:jar:0.9.0-incubating:provided
> [INFO] |  +- org.apache.tephra:tephra-core:jar:0.9.0-incubating:provided
> [INFO] |  |  +- com.google.code.gson:gson:jar:2.2.4:provided
> [INFO] |  |  +- com.google.inject:guice:jar:3.0:provided
> [INFO] |  |  |  +- javax.inject:javax.inject:jar:1:provided
> [INFO] |  |  |  \- aopalliance:aopalliance:jar:1.0:provided
> [INFO] |  |  +-
> com.google.inject.extensions:guice-assistedinject:jar:3.0:provided [INFO] |
>  |  +- org.apache.thrift:libthrift:jar:0.9.0:provided
> [INFO] |  |  +- it.unimi.dsi:fastutil:jar:6.5.6:provided
> [INFO] |  |  +- org.apache.twill:twill-common:jar:0.6.0-incubating:provided
> [INFO] |  |  +- org.apache.twill:twill-core:jar:0.6.0-incubating:provided
> [INFO] |  |  |  +- org.apache.twill:twill-api:jar:0.6.0-incubating:provided
> [INFO] |  |  |  \- org.ow2.asm:asm-all:jar:5.0.2:provided
> [INFO] |  |  +-
> org.apache.twill:twill-discovery-api:jar:0.6.0-incubating:provided [INFO] |
>  |  +- org.apache.twill:twill-discovery-core:jar:0.6.0-incubating:provided
> [INFO] |  |  \-
> org.apache.twill:twill-zookeeper:jar:0.6.0-incubating:provided [INFO] |  +-
> org.apache.tephra:tephra-hbase-compat-1.1:jar:0.9.0-incubating:provided
> [INFO] |  +- org.antlr:antlr-runtime:jar:3.5.2:provided
> [INFO] |  +- jline:jline:jar:2.11:provided
> [INFO] |  +- sqlline:sqlline:jar:1.2.0:provided
> [INFO] |  +- com.google.guava:guava:jar:13.0.1:provided
> [INFO] |  +- joda-time:joda-time:jar:1.6:compile
> [INFO] |  +-
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:provided
> [INFO] |  +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:provided
> [INFO] |  +- org.codehaus.jackson:jackson-core-asl:jar:1.9.2:provided
> [INFO] |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.2:provided
> [INFO] |  +- junit:junit:jar:4.12:compile
> [INFO] |  |  \- org.hamcrest:hamcrest-core:jar:1.3:compile
> [INFO] |  +- com.google.protobuf:protobuf-java:jar:2.5.0:provided
> [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.0.1:compile
>
>
> Thanks,
> Milan Das





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