Displaying the dependency tree for a Maven project

Today while trying to solve an issue with Maven I came across the dependency tree plugin. Pretty cool little plugin that prints the dependency tree of a project. If you are working on a multi module project it prints out a dependency tree for each module. Nice.

Just type the following command in the Maven project directory you want to see the dependency tree of or the root of the multi module project for all modules.

mvn dependency:tree

And you should see something like this.

Maven dependency tree

Maven dependency tree

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s