Installation
$ maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-dotuml-plugin -Dversion=1.0
-Dmaven.repo.remote=http://maven-plugins.sourceforge.net/maven/
The installation does not complete here since the dependency is resolved while running the command
maven maven-dotuml-plugin:report
This command tries to download some of the dependencies and it fails to download UMLGraph version 2.8.
UMLGraph can be manually downloaded from
http://www.spinellis.gr/sw/umlgraph/. I had it working with the version 2.10. Download, unzip the archive and
copy the UMLGraph.jar file into the maven repository directory.
$ mkdir -p {$HOME}/.maven/repository/umlgraph/jars
$ cp $UMLGRAPHHOME/UMLGraph.jar {$HOME}/.maven/repository/umlgraph/jars/UMLGraph-2.10
Usage
To generate the UML report, run the following command
$cd $COSMOSRC
$maven maven-dotuml-plugin:report
You should see a build successful message and all the image files will be placed in $COSMOSRC/target/docs/dotuml.
One of the image file from that directory is shown below
dotuml also generates an index file in $COSMOSRC/target/docs/dotuml/index.html. This file is a
big file containing
links and the images generated by dotuml. It also links the images with the actual javadoc.
The
goals and
properties can be customized to your needs.
--
VinubalajiGopal - 06 Oct 2006