Where do I have to configure where Jenkins can find JavaDoc files. I did see that the JavaDoc-Plugin is installed but I did not find any place where I would be able to configure it.
This is my pom.xml
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
</plugin>
</plugins>
</reporting>
thx a lot
For Freestyle jobs
If you have installed the Javadoc plugin (and have since restarted Jenkins, if you're using Jenkins 1.441 or older), you should see an option in the job configuration.
Under "Post-build Actions" check the "Publish Javadoc" item and then enter the path to your generated Javadoc, relative to the workspace.
For Maven jobs
If you generate Javadoc from your Maven build, and you use the Maven job type in Jenkins, it should be automatically published on the web page for each module built in Jenkins.
See also: http://jenkins.361315.n4.nabble.com/Show-Javadoc-in-Maven2-project-td2340256.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With