Download the Plugin and Install

Execute maven.

maven plugin:download
      -DgroupId=doccheck
      -DartifactId=maven-doccheck-plugin
      -Dversion=1.4-0.1
All of this should be put on a single line.

Add DocCheck Report to your project

Via project.xml

Add the maven-doccheck-plugin to the reports section.

project.xml:

<reports>
  <report>maven-doccheck-plugin</report>
</reports>

Via maven.xml

Register the maven-doccheck-plugin in the postGoal of xdoc:register-reports.

maven.xml:

<postGoal name="xdoc:register-reports">
  <attainGoal name="maven-doccheck-plugin:register"/>
</postGoal>

For Maven 2.x

Currently, the Maven DocCheck Plug-in only works for Maven 1. However, you can use the maven-javadoc-plugin to generate DocCheck reports.

Before doing anything else, install the doclet itself.

Replace the javadoc report

Add the following to the <reporting> section of your pom.

  <reporting>
    ...
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <reportSets>
          <reportSet>
            <id>doccheck</id>
            <configuration>
              <doclet>com.sun.tools.doclets.doccheck.DocCheck</doclet>
              <docletArtifact>
                <groupId>com.sun.tools.doclets</groupId>
                <artifactId>doccheck</artifactId>
                <version>1.2b2</version>
              </docletArtifact>
            </configuration>
            <reports>
              <report>javadoc</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
    ...
  <reporting>
This will produce the Doc Check Doclet report in place of the javadocs.

With the javadoc report

Most people who will use the Doc Check Doclet will also want to see the actual javadocs.

First, you must use a maven-javadoc-plugin version with MJAVADOC-81 applied. Currently, the only solution is to apply the patch and install it yourself.

Add the following to the <reporting> section of your pom.

  <reporting>
    ...
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.1-SNAPSHOT</version>
        <reportSets>
          <reportSet>
            <id>html</id>
            <reports>
              <report>javadoc</report>
            </reports>
          </reportSet>
          <reportSet>
            <id>doccheck</id>
            <configuration>
              <name>DocCheck</name>
              <description>DocCheck documentation</description>
              <doclet>com.sun.tools.doclets.doccheck.DocCheck</doclet>
              <docletArtifact>
                <groupId>com.sun.tools.doclets</groupId>
                <artifactId>doccheck</artifactId>
                <version>1.2b2</version>
              </docletArtifact>
              <destDir>doccheck</destDir>
            </configuration>
            <reports>
              <report>javadoc</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
    ...
  <reporting>
This will produce the Doc Check Doclet report along with the javadocs.