Maven plugin details
UMLGraph can be easily integrated with existing maven based application. Below is the maven plugin details which needs to be configured:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> <docletArtifact> <groupId>org.umlgraph</groupId> <artifactId>doclet</artifactId> <version>5.1</version> </docletArtifact> <additionalparam>-horizontal -attributes -enumconstants -enumerations -operations -types -visibility -inferrel -inferdep -hide java.* -inferrel -collpackages java.util.*</additionalparam> <show>public</show> </configuration> </plugin>
UMLGraph depends upon Graphviz which must be already installed on the machine. Also in the above maven setting if you configure ‘GRAPHVIZ_HOME’ environment variable you need not specify the docletpath in plugin details.
Steps to configure UMLGraph
- Download and install Graphviz
- Set GRAPHVIZ_HOME environment variable.
- Add the above plugin details in your POM.xml, configure additionalparams per your need.
- execute ‘mvn javadoc:javadoc’.
Below is the sample generated using above configuration over our Pizza entity pizza_class_diagram.png
You can configure this diagram per your needs. Please refer UMLGraph class diagram options for more configuration.
This guide will introduce you to the world of Software Architecture!
This 162 page guide will cover topics within the field of software architecture including: software architecture as a solution balancing the concerns of different stakeholders, quality assurance, methods to describe and evaluate architectures, the influence of architecture on reuse, and the life cycle of a system and its architecture. This guide concludes with a comparison between the professions of software architect and software engineer.