Skip to content

Instantly share code, notes, and snippets.

@jeszy75
Last active February 23, 2024 17:03
Show Gist options
  • Save jeszy75/88a4ae0a7433c0104a4d7b6334192f20 to your computer and use it in GitHub Desktop.
Save jeszy75/88a4ae0a7433c0104a4d7b6334192f20 to your computer and use it in GitHub Desktop.
Reporting with Apache Maven

Reporting with Apache Maven

In the pom.xml file, add the following element to the project/reporting/plugins element:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>buildplan-maven-plugin</artifactId>
  <version>2.2.2</version>
</plugin>

In the pom.xml file, add the following element to the project/reporting/plugins element:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-javadoc-plugin</artifactId>
  <version>3.6.3</version>
</plugin>

In the pom.xml file, add the following element to the project/reporting/plugins element:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-dependency-plugin</artifactId>
  <version>3.6.1</version>
</plugin>

In the pom.xml file, add the following element to the project/reporting/plugins element:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>versions-maven-plugin</artifactId>
  <version>2.16.2</version>
  <reportSets>
    <reportSet>
      <reports>
        <report>dependency-updates-report</report>
      </reports>
    </reportSet>
  </reportSets>
</plugin>

In the pom.xml file, add the following element to the project/reporting/plugins element:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-pmd-plugin</artifactId>
  <version>3.21.2</version>
</plugin>

In the pom.xml file, add the following element to the project/reporting/plugins element:

<plugin>
  <groupId>com.github.spotbugs</groupId>
  <artifactId>spotbugs-maven-plugin</artifactId>
  <version>4.8.3.1</version>
</plugin>

In the pom.xml file, add the following element to the project/reporting/plugins element:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-checkstyle-plugin</artifactId>
  <version>3.3.1</version>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment