I ran this command in my project directory to build and package it:
mvn clean javadoc:jar package
I do have my JAVA_HOME varia
JAVA_HOME
They fixed this for OSX in maven 3.1 by adding "export JAVA_HOME" to the "bin/mvn" shell script, obviating the need to set JAVA_HOME externally yourself just to find javadoc.