First create the Maven structure (you can use the maven webapp archetype instead if you prefer): > … How to get a dependency tree for an artifact? WARNING: This project is not actively maintained anymore.

mvn dependency: tree – This command prints the complete tree of dependencies of the complete project. mvn dependency:tree Luckily there’s a command that will help you figure out just how deep into dependency hell you are. One possible solution is to filter the result per scope. You can run mvn dependency:tree on the command line like below. This is useful in getting all the transitive dependencies and gets all conflicts if there are any due to version. For example, displaying only dependencies of scope “compile” can be done as: We can use mvn dependency:tree -Dverbose command to print the dependency conflicts. Home » org.apache.maven.shared » maven-dependency-tree » 3.0.1 Apache Maven Dependency Tree » 3.0.1 A tree-based API for resolution of Maven project dependencies

What is the use? This library contains: A set of parsers that parse the output of the Maven command mvn dependency:tree; different parsers can be used to parse the following output formats: text, dot, graphml and tgf.See the Maven Dependency Plugin Tree Mojo page for further details. maven-2 - plugin - mvn dependency tree command . This command brings all the different dependencies. Knowing the list of all the dependencies in a maven project is helpful if you want to exclude some indirect dependencies. Meanwhile, you might only interested in some of them. While command mvn dependency:tree is easy to use, it also brings all the dependencies to the result.

You can observe what Maven is doing for you behind the scenes by using the mvn dependency:tree command ... Now we will examine instead how to develop a standard webapp with Maven and Jetty. Here’s what the output might look like when you run mvn dependency:tree. For example the mvn clean install command triggers the jar packaging. It can help us in determining if there are any incompatibility issues with a JAR. (4) dependency:tree can be used to see the dependency tree for a given project. This includes compiling the sources, executing the tests and packaging the compiled files in a JAR file. You should be in the same folder where pom.xml exists. This can be done using the command-line option scope. But what I need is to see the dependency tree for a 3rd party artifact. As last step the install phase installs the resulting artifact into the local repository, so it …

Maven Dependency Tree Parser.