Publish JavaDoc on Jenkins with maven

javadoc, jenkins, maven

Solution

- Make sure Jenkins javadoc plugin is installed. Go to http://yourjenkinsserver.com/jenkins/pluginManager/installed to see list of intalled plugins. Plugin page https://wiki.jenkins-ci.org/display/JENKINS/Javadoc+Plugin

Configure Jenkins job: In Build section, Goals and options line add:

javadoc:javadoc

That's all. No need to change pom.xml

Problem

I have maven project that is built by Jenkins-CI. How to generate and publish JavaDoc on Jenkins?

Original source