52

I've got a big multi-module project, and I'd like to generate a report that shows all the licenses of all the things the project depends on.

I looked at tattletale, but it doesn't seem to do the trick. And I can easily find a plugin that will squirt a license into the top of each source file, but this exact thing is defying my googling.

Joshua Taylor
  • 84,998
  • 9
  • 154
  • 353
kikibobo
  • 1,217
  • 1
  • 9
  • 8
  • I had not seen Tattletale before - http://www.jboss.org/tattletale – Mark Butler Apr 11 '13 at 10:20
  • possible duplicate of [Tool to determine licenses for pom.xml dependencies](http://stackoverflow.com/questions/1727091/tool-to-determine-licenses-for-pom-xml-dependencies) – Robin Green Jul 17 '14 at 12:13

3 Answers3

49

The Maven Project Info Reports Plugin can be used to generate a Project Dependencies report that lists all dependencies and also groups them by licenses.

The project-info-reports:dependencies goal can be used to generate an individual report but it should be used as a Maven report and is actually provided by default (see Configuring Reports) when generating the site for the project in the test scope.

For an example, have a look at the Licenses of the Project Dependencies of the Maven Site Plugin.

Johannes Rabauer
  • 330
  • 3
  • 15
Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
  • Indeed -- thanks. mvn site has caused all kinds of problems so I haven't looked at its output for awhile; didn't realize I can run project-info-reports:dependencies stand-alone, and it seems to do exactly what I need. Much appreciated! – kikibobo Mar 22 '10 at 22:45
16

Also take a look at License Maven Plugin . The license:add-third-party goal can be used to create a list of licenses associated with each dependency. The goal also provides functionality to allow you specify information about missing licenses.

Alex Shesterov
  • 26,085
  • 12
  • 82
  • 103
bstick12
  • 1,699
  • 12
  • 18
11

mvn site includes such an overview under dependencies, doesn't it?

Tim
  • 19,793
  • 8
  • 70
  • 95