Publicar JavaDoc en Jenkins con maven

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

preguntado el 24 de diciembre de 12 a las 02:12

2 Respuestas

  1. Make sure Jenkins javadoc plugin is installed.
    Utilice la herramienta http://yourjenkinsserver.com/jenkins/pluginManager/installed to see list of intalled plugins.
    Página de complementos https://wiki.jenkins-ci.org/display/JENKINS/Javadoc+Plugin
  2. Configure Jenkins job:
    In Build section, Goals and options line add:

    javadoc:javadoc

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

Jenkinsns job view

Respondido el 25 de diciembre de 12 a las 03:12

I needed to use javadoc:aggregate in order for them to be published - jeremyjjbrown

con javadoc:javadoc the link is available for each module. with javadoc:aggregate it is back to the project status page. See issues.jenkins-ci.org/browse/JENKINS-9140 - no comprobado

Can I do both a build and a javadoc at the same time? - Lennart Rolland

The simplest thing to do is to create a separate task that runs thr javadoc command, and which runs after the compile task. You pass it the input and output directories.

I would run a separate tomcat for your CI website - it's easier.

Respondido el 24 de diciembre de 12 a las 03:12

I think this answer is for Ant, not Maven. - Pablo Verest

agreed - this sounds like an ant answer - jayunit100

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.