PaulEdison
PaulEdison

Reputation: 947

Histrogram of maven dependencies over all projects (What is used how often)

Is there a way to generate somehow a Histogram of Maven Dependencies? (number of usages over the library)

I would like to know for all of our projects (not necessary connected in any terms):

Is there a way to extract this information with maven (or any other tool) form the POMs?
Do you have suggestions how to collect this info over many projects?

Upvotes: 0

Views: 58

Answers (2)

Leviand
Leviand

Reputation: 2805

You can do that with a command:

mvn dependency:tree -Dverbose

The -Dverbose option will show all dependencies, even the ones removed.

Read here for more info

Upvotes: 1

Nikolas
Nikolas

Reputation: 44368

IntelliJ Idea

In IntelliJ Idea, open pom.xml file, right-click anywhere and select Diagrams -> Show dependencies...:

IntelliJ Idea

Upvotes: 0

Related Questions