Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Look for Java dependencies #2

Closed
jasinner opened this issue Sep 29, 2020 · 1 comment
Closed

Look for Java dependencies #2

jasinner opened this issue Sep 29, 2020 · 1 comment

Comments

@jasinner
Copy link
Contributor

Usually Java project dependencies are managed with Maven. In that case a pom.xml will be found at the root of the project. Running mvn --no-transfer-progress dependency:tree will print the direct and transitive Java dependencies.

The maven package needs to installed to provide the command mvn.

Here is some sample output:

--- maven-dependency-plugin:2.8:tree (default-cli) @ hive-shims-common ---
[INFO] org.apache.hive.shims:hive-shims-common:jar:2.3.3
[INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.6.2:compile
[INFO] |  \- org.apache.logging.log4j:log4j-api:jar:2.6.2:compile
[INFO] +- com.google.guava:guava:jar:14.0.1:compile
[INFO] +- org.apache.hadoop:hadoop-client:jar:2.7.2:compile
[INFO] |  +- org.apache.hadoop:hadoop-common:jar:2.7.2:compile
[INFO] |  |  +- commons-cli:commons-cli:jar:1.2:compile
[INFO] |  |  +- org.apache.commons:commons-math3:jar:3.1.1:compile
[INFO] |  |  +- xmlenc:xmlenc:jar:0.52:compile
[INFO] |  |  +- commons-httpclient:commons-httpclient:jar:3.0.1:compile
[INFO] |  |  |  \- junit:junit:jar:4.11:compile
[INFO] |  |  |     \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] |  |  +- commons-codec:commons-codec:jar:1.4:compile
[INFO] |  |  +- commons-io:commons-io:jar:2.4:compile
[INFO] |  |  +- commons-net:commons-net:jar:3.1:compile
[INFO] |  |  +- commons-collections:commons-collections:jar:3.2.2:compile
@mcoops
Copy link
Owner

mcoops commented Oct 5, 2020

Addressed in: 68867fd

@mcoops mcoops closed this as completed Oct 5, 2020
mcoops added a commit that referenced this issue Oct 5, 2020
Signed-off-by: mcoops <cooper.d.mark@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants