19

I'm looking for a tool that given a maven pom.xml file tells me all the licenses that are used by the dependencies (and recursively their dependencies). Does such a thing exist?

Ideally it would tell me:

  • For each dependency all licenses that apply
  • A summary list of a different licenses referenced.
Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
Carsten
  • 4,204
  • 4
  • 32
  • 49

2 Answers2

25
mvn project-info-reports:dependencies

then in target/site/dependencies.html you should see a pretty nice list of all your dependencies.

This is really taken from @Carsten, but I felt it was worth a full answer.

Nathan Feger
  • 19,122
  • 11
  • 62
  • 71
11

Did you have a look at the maven-dependency-plugin?

In the report it does not only list all the (transitive) dependencies, but also groups them by licenses, as you can see in its own report.

simon
  • 734
  • 7
  • 6