Mastering Apache Maven 3

This is my fourth Book as Reviewer.
Good book for Java Developers / Build Engineers / Maven Plugin Developers.



2015-01-06 20_38_40-Mastering Apache Maven 3 _ Packt

Paperback: 298 pages
Publisher: Packt Publishing (December 29, 2014)
Language: English
ISBN-10: 1783983868
ISBN-13: 978-1783983865


Maven for Eclipse

This is my third Book as Reviewer. Good book for Java Developers.

Maven for Eclipse (Amazon Link)
Paperback – Released on August 25, 2014


2014-08-26 08_28_51-Maven for Eclipse_ Sanjay Shah_ 9781783987122_ Amazon

About Reviewer: (You can see inside pages in Amazon)


2014-08-26 08_30_11-Maven for Eclipse_ Sanjay Shah_ 9781783987122_ Amazon

Paperback: 173 pages
Publisher: Packt Publishing – ebooks Account (August 25, 2014)
Language: English
ISBN-10: 178398712X
ISBN-13: 978-1783987122

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


Generate Class Diagrams, Sequence Diagrams (UML) using Maven


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

Download and install Graphviz from


      <!-- mvn javadoc:javadoc will generate java docs along with UML Diagrams -->


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.



**** Best tool to generate sequence diagram from Unit Tests
This will help to understand code easily.


FREE UML Modeling Tool: Astah community edition


How to print classpath in Maven?


Use this plugin

>mvn cpprinter:print



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