James Jefferies and ShedCode Ltd

The world of James and ShedCode

Asking Maven to Produce Your Javadocs

Javadocs are the java platforms standard way of producing code documentation, comments about what the class is for, which methods are provided and all that kind of stuff. It feels a bit old school now, but they are really useful if kept up to date.

As we are building our project using maven, we can ask maven to build a ‘site’ for our project. This pulls in various bits of information about the project, including dependencies on other libraries (and their licencing models) and all kinds of interesting stuff.

One of the maven plugins generates the javadocs for your project and it’s very straightforward to set up, just add this to the reporting section of your pom file (for maven) and when you do a mvn site it automatically builds your javadocs.