Adapt pom.xml for javadoc generation

Use mvn javadoc:javadoc to generate the javadoc.