【发布时间】:2023-03-15 02:19:01
【问题描述】:
【问题讨论】:
【问题讨论】:
【讨论】:
您应该使用链接中列出的确切插件依赖项:dependencies plugin。
尤其是它的analyze-report 插件。
在原始形式中,您会:
1) 将此添加到您的项目中:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
</execution>
</executions>
</plugin>
2) 运行此命令:mvn dependency:analyze-report
生成的报告dependency-analysis.html 将位于target 文件夹中。
或运行mvn site 以获取完整站点。
【讨论】:
dependency:analyze-report 只会生成没有许可信息的依赖关系报告。回答stackoverflow.com/a/9261978/418439就可以了。