用于确定 pom.xml 依赖项许可证的工具
我正在寻找一个工具,它给定一个 Maven pom.xml 文件,告诉我依赖项(以及递归地它们的依赖项)使用的所有许可证。这样的事存在吗?
理想情况下,它会告诉我:
- 对于每个依赖项,所有适用的许可证
- 引用的不同许可证的摘要列表。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
然后在 target/site/dependency.html 中,您应该看到所有依赖项的漂亮列表。
这确实取自@Carsten,但我觉得值得一个完整的答案。
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.
您看过 maven-dependency-plugin 吗?
在报告中,它不仅列出了所有(传递)依赖项,而且还按许可证对它们进行分组,正如您在其自己的 报告。
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.