以下是maven-project-info-reports-plugin:3.4.2的完整插件配置:

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-project-info-reports-plugin</artifactId>
      <version>3.4.2</version>
      <configuration>
        <projectNameTemplate>${artifactId}-${version}</projectNameTemplate>
        <outputDirectory>${project.build.directory}/site</outputDirectory>
        <aggregate>true</aggregate>
        <dependencyLocationsEnabled>true</dependencyLocationsEnabled>
        <dependencyLocationsOutputDirectory>${project.build.directory}/dependency-locations</dependencyLocationsOutputDirectory>
        <dependencyDetailsEnabled>true</dependencyDetailsEnabled>
        <dependencyDetailsOutputDirectory>${project.build.directory}/dependency-details</dependencyDetailsOutputDirectory>
        <reportPlugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.2.0</version>
            <reportSets>
              <reportSet>
                <id>default</id>
                <reports>
                  <report>javadoc</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <version>3.1.2</version>
            <reportSets>
              <reportSet>
                <id>default</id>
                <reports>
                  <report>checkstyle</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <version>3.0.0-M5</version>
            <reportSets>
              <reportSet>
                <id>default</id>
                <reports>
                  <report>surefire-report</report>
                </reports>
              </reportSet>
            </reportSets>
          </plugin>
        </reportPlugins>
      </configuration>
    </plugin>
  </plugins>
</build>

这个插件配置中包括了以下内容:

  1. 使用了maven-project-info-reports-plugin:3.4.2版本的插件。
  2. 配置了输出目录和聚合模式。
  3. 启用了依赖项位置和详细信息输出,并指定了输出目录。
  4. 配置了三个报告插件:maven-javadoc-plugin、maven-checkstyle-plugin和maven-surefire-report-plugin。每个插件都配置了报告集和报告。
maven-project-info-reports-plugin342 帮我些个完整的插件

原文地址: https://www.cveoy.top/t/topic/bvLo 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录