mauriciojost
mauriciojost

Reputation: 370

Artifact is pulled without explicit dependency shown by sbt-dependency-graph

My almost-empty SBT project here has only one dependency:

Checking the pom of such artifact, it seems it does not depend on any guice-servlet artifact.

However when I run sbt dependency-tree I see something different, it does depend on a guice-servlet artifact:

user@laptop:~/workspace/pack$ sbt dependency-tree
[info] Loading project definition from /home/user/workspace/pack/project
[info] Set current project to pack (in build file:/home/user/workspace/pack/)
[info] eu.pepot.eu:pack_2.10:0.1 [S]
[info]   +-org.apache.hadoop:hadoop-yarn-server-nodemanager:2.2.0
[info]     +-com.google.inject.extensions:guice-servlet:3.0
[info]     | +-com.google.inject:guice:3.0
[info]     |   +-aopalliance:aopalliance:1.0
[info]     |   +-javax.inject:javax.inject:1
...

What am I missing?

Upvotes: 1

Views: 150

Answers (1)

Jérémie B
Jérémie B

Reputation: 11022

This dependency comes from the parent pom, hadoop-yarn.

hadoop-yarn-server-nodemanager use hadoop-yarn-server which use hadoop-yarn. This pom has a lot of dependencies, including Guice.

Upvotes: 1

Related Questions