Tool to determine licenses for pom.xml dependencies [duplicate]

杀马特。学长 韩版系。学妹 提交于 2019-12-03 15:57:35

问题


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.

回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/1727091/tool-to-determine-licenses-for-pom-xml-dependencies

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