Add FAQ on generating class diagrams in Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@518447 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
22b4cee14e
commit
cb78ec41f0
@ -53,5 +53,49 @@ maven.javadoc.offlineLinks= \
|
||||
<source>maven.javadoc.additionalparam=-J-DproxyHost=${maven.proxy.host} -J-DproxyPort=${maven.proxy.port}</source>
|
||||
</answer>
|
||||
</faq>
|
||||
<faq id="classdiagrams">
|
||||
<question>How do I generate class diagrams on Javadoc pages using free tools ?</question>
|
||||
<answer>
|
||||
<p>
|
||||
One solution is to use UMLGraph and dot (part of Graphviz).
|
||||
</p>
|
||||
<p>
|
||||
When running the javadoc goal with the below configuration,
|
||||
the UmlGraphDoc doclet generates class diagrams
|
||||
into the package and class pages.
|
||||
<ol>
|
||||
<li>Put latest jar in repo/depend on UmlGraph jar, e.g.</li>
|
||||
<source><![CDATA[
|
||||
<dependency>
|
||||
<groupId>gr.spinellis</groupId>
|
||||
<artifactId>UmlGraph</artifactId>
|
||||
<version>4.6</version>
|
||||
</dependency>
|
||||
]]></source>
|
||||
|
||||
<li>Set Maven properties:</li>
|
||||
<source>
|
||||
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
|
||||
</source>
|
||||
|
||||
<li>
|
||||
Install dot (in <a href="http://www.graphviz.org">Graphviz</a>)
|
||||
and put on PATH (so UmlGraphDoc can run it); e.g. for Windows:
|
||||
</li>
|
||||
<source>
|
||||
GRAPHVIZ_HOME=(the path)
|
||||
PATH=%PATH%;%GRAPHVIZ_HOME%\bin
|
||||
</source>
|
||||
</ol>
|
||||
</p>
|
||||
<p>
|
||||
Refer to
|
||||
<a href="http://www.spinellis.gr/sw/umlgraph/">UMLGraph</a>
|
||||
docs for its custom Javadoc tags that enhance the generated diagrams.
|
||||
</p>
|
||||
</answer>
|
||||
</faq>
|
||||
</part>
|
||||
</faqs>
|
||||
@ -63,6 +63,8 @@
|
||||
Specifies the doclet to use when calling javadoc. See
|
||||
<a href="http://ant.apache.org/manual/CoreTasks/javadoc.html">the
|
||||
ant javadoc task</a> documentation for more detail.
|
||||
See <a href="faq.html#classdiagrams">Class Diagrams FAQ</a>
|
||||
as an example.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user