【问题标题】:What should I use to get the following maven report?我应该使用什么来获得以下 Maven 报告?
【发布时间】:2023-03-15 02:19:01
【问题描述】:

【问题讨论】:

    标签: maven report


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      您应该使用链接中列出的确切插件依赖项: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就可以了。
      猜你喜欢
      • 2011-10-14
      • 1970-01-01
      • 2017-05-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-14
      相关资源
      最近更新 更多