maven report on licenses your project depends on [closed]

不想你离开。 提交于 2019-11-26 11:01:32

问题


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.


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/2493507/maven-report-on-licenses-your-project-depends-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!