The URLs must link to a directory where the javadoc generated file "package-list" is accesible for the package.
Example:
maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api/, http://maven.apache.org/apidocs/
The URLs must link to a directory where the javadoc generated file "package-list" is accesible for the package.
Example (generates offline links in offline mode):
maven.javadoc.offlineLinks=/opt/java-apidoc/j2sdk1.4.1/docs/api/, /cvsroot/maven/target/docs/apidocs/
Generation of online javadoc links in offline mode is also possible. You need to provide the online URL plus the a offline directory resource for "package-list". URL and directory need to be seperated by the "#" character.
Example (generates online links in offline mode):
maven.javadoc.offlineLinks= \ http://java.sun.com/j2se/1.4.2/docs/api/#/opt/java-apidoc/j2sdk1.4.1/docs/api/, \ http://maven.apache.org/apidocs/#/cvsroot/maven/target/docs/apidocs/
You can set your proxy parameters in the additionnal parameters passed to the javadoc :
maven.javadoc.additionalparam=-J-DproxyHost=${maven.proxy.host} -J-DproxyPort=${maven.proxy.port}
One solution is to use UMLGraph and dot (part of Graphviz).
When running the javadoc goal with the below configuration, the UmlGraphDoc doclet generates class diagrams into the package and class pages.
<dependency> <groupId>gr.spinellis</groupId> <artifactId>UmlGraph</artifactId> <version>4.6</version> </dependency>
maven.javadoc.doclet=gr.spinellis.umlgraph.doclet.UmlGraphDoc maven.javadoc.docletpath=${maven.repo.local}/gr.spinellis/jars/UmlGraph-4.6.jar maven.javadoc.usestandardparameters=true
Maven Javadoc plugin version 1.9 and newer enables specifying custom doclet parameters. This makes configuring UMLGraph's doclet possible, for example, turning on extra class diagram adornments. Adjust these as desired, referring to the UMLGraph documentation.
maven.javadoc.doclet.param.list=umlgraph.all umlgraph.all.name=-all
GRAPHVIZ_HOME=(the path) PATH=%PATH%;%GRAPHVIZ_HOME%\bin
Note that UmgGraphDoc outputs an error message if it could not run dot.
Refer to UMLGraph docs for its custom Javadoc tags that enhance the generated diagrams.