Maven dependency tree

Maven Dependency Management is very important when project is growing on…

We can analyse at command prompt
>mvn dependency:tree

We can try Analyse tab in Eclipse

Also we can use reports
https://maven.apache.org/plugins/maven-project-info-reports-plugin/
https://maven.apache.org/plugins/maven-project-info-reports-plugin/dependencies-mojo.html
http://maven.apache.org/plugins/maven-dependency-plugin/analyze-report-mojo.html
https://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html
-o-

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

Java 1.6 and maven-javadoc-plugin issue

maven-javadoc-plugin 2.6 is and other versions are giving problem while trying with Java 1.6

Reason: there is some issues with code. we have option “fix” with plugin, but it is not working. So we dont know exact problem to generate javadoc.

Solution: Try javadoc:javadoc with one profile and try by exluding com.* in another profile
>mvn -P JavaDoc_Profile javadoc:javadoc (Generate before site) (regular maven-javadoc-plugin)
>mvn -P Site_Profile site (regular maven-javadoc-plugin with exclude com.*)

dont use site-deploy
Now to test, i dont have remote site to use site:deploy.
alternative is site:stage

-o-
http://blog.vermaas.net/2005/10/maven-2-getting-sitedeploy-to-work_30.html
http://maven.apache.org/plugins/maven-site-plugin/examples/site-deploy-to-sourceforge.net.html
http://maven.apache.org/plugins/maven-site-plugin/usage.html