Is there a CLI tool I can use to quickly view the transitive dependencies of a Maven pom.xml file?
Is there a CLI tool I can use to quickly view the transitive dependencies
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On the CLI, use
mvn dependency:tree(Here are some additional Usage notes)
When running
dependency:treeon multi-module maven project, usemvn compile dependency:treeinstead1.Otherwise, the POM Editor in M2Eclipse (Maven integration for Eclipse) is very good, and it includes a hierarchical dependency view.
1If you don’t compile, you might get error
Failed to execute goal on project baseproject: Could not resolve dependencies for project com.company:childproject:jar:1.0.0: Could not find artifact. This might happen becausedependency:treecommand doesn’t build projects and doesn’t resolve dependencies, and your projects are not installed in maven repository.