Generate Class Diagrams, Sequence Diagrams (UML) using Maven

——————————————————
CLASS DIAGRAMS

Note: Graphviz ‘dot’ binary must be available in PATH, or the images wont be generated.

Download and install Graphviz from http://www.graphviz.org/

<build>
    <plugins>

      <!-- mvn javadoc:javadoc will generate java docs along with UML Diagrams -->
	<plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-javadoc-plugin</artifactId>
		<version>2.7</version>
		<configuration>
		  <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
		  <docletArtifact>
		    <groupId>org.umlgraph</groupId>
		    <artifactId>doclet</artifactId>
		    <version>5.1</version>
		  </docletArtifact>
		  <additionalparam>-views</additionalparam>
		  <useStandardDocletOptions>true</useStandardDocletOptions>
		</configuration>
	</plugin>

    </plugins>
  </build>

Conclusion: Finally it looks like showing images on top of java docs. But those are already available as part of java docs in text format.
I didn’t felt that this is much useful at this time.

http://www.umlgraph.org/
http://wiki.wsmoak.net/cgi-bin/wiki.pl?UMLGraph
http://maven.apache.org/plugins/maven-javadoc-plugin/examples/alternate-doclet.html
http://maven.apache.org/maven-1.x/plugins/javadoc/faq.html#classdiagrams

——————————————————

SEQUENCE DIAGRAMS

http://code.google.com/p/jtracert/wiki/GeneratingSequenceDiagramsFromUnitTests

**** Best tool to generate sequence diagram from Unit Tests
This will help to understand code easily.
http://www.jsonde.com/

——————————————————

FREE UML Modeling Tool: Astah community edition

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s