Download the Doc Check Doclet. The current version is 1.2-beta2.
Unzip the archive.
unzip doccheckdoclet-1_2-beta2.zip
doccheck1.2b2 directory is the doccheck.jar.
Copy the jar to your Maven local repository.
cp doccheck.jar $HOME/.maven/repository/doccheck/jars/doccheck-1.2b2.jar
Copy the Maven resources to the doccheck1.2b2 directory.
Set the maven.doccheck.tools.jar property in build.properties
to the tools.jar of JDK 1.4.
(This step is not necessary if you are already using this version.)
build.properties:
maven.doccheck.tools.jar = /usr/local/j2sdk1.4.2_05/lib/tools.jar
Inside the doccheck1.2b2 directory, execute maven.
maven
These files are to be copied to the doccheck1.2b2 directory.
You may also want to apply some patches for the Doc Check Doclet.
Inside the doccheck1.2b2 directory, execute maven.
mvn install:install-file
-Dfile=doccheck.jar
-DgroupId=com.sun.tools.doclets
-DartifactId=doccheck
-Dversion=1.2b2
-Dpackaging=jar
-DgeneratePom=true
Copy the Maven resources to the doccheck1.2b2 directory.
Install the tools.jar of JDK 1.4.
Inside the directory where the tools.jar is, execute maven.
mvn install:install-file
-Dfile=tools.jar
-DgroupId=com.sun.tools
-DartifactId=doclets
-Dversion=1.4
-Dpackaging=jar
-DgeneratePom=true
Inside the doccheck1.2b2 directory, execute maven.
mvn install
These files are to be copied to the doccheck1.2b2 directory.
You may also want to apply some patches for the Doc Check Doclet.