To add UML to your Javadoc, is quite simple. You need to add Graphviz into your maven build.
First you need to download and install Graphviz. Go there Graphviz
After that you should add the variable GRAPHVIZ_HOME (that point to the installation folder) into your system.
The last step is to add the plugin into your pom.
Add the lines in bold.
With that you will have nice UML into your javadoc. I hope that help.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.6.1</version>
<configuration>
<links>
<link>http://java.sun.com/javase/6/docs/api/</link>
</links>
<detectOfflineLinks />
<doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
<!--
use this line or use the variable GRAPHVIZ_HOME
<docletPath>/path/to/UmlGraph.jar</docletPath>
-->
<docletArtifact>
<groupId>org.umlgraph</groupId>
<artifactId>doclet</artifactId>
<version>5.1</version>
</docletArtifact>
<additionalparam>-operations</additionalparam>
<additionalparam>-qualify</additionalparam>
<additionalparam>-types</additionalparam>
<additionalparam>-visibility</additionalparam>
<additionalparam>-collpackages</additionalparam>
<show>private</show>
</configuration>
</plugin>
| Comments |
|
Powered by !JoomlaComment 3.26















