我的 Jenkins 中的 JavaDoc 在哪里
我必须在哪里配置 Jenkins 可以在哪里找到 JavaDoc 文件。我确实看到 JavaDoc-Plugin 已安装,但我没有找到任何可以配置它的地方。
这是我的 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>
非常感谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于自由式作业
如果您已经安装了 Javadoc 插件(并且重新启动了 Jenkins,如果您使用的是 Jenkins 1.441 或更早版本),您应该会在作业配置中看到一个选项。
在“构建后操作”下,选中“发布 Javadoc”项,然后输入生成的 Javadoc 相对于工作区的路径。
对于 Maven 作业
如果您从 Maven 构建生成 Javadoc,并且在 Jenkins 中使用 Maven 作业类型,则它应该自动发布在 Jenkins 中构建的每个模块的网页上。
另请参阅:http://jenkins.361315。 n4.nabble.com/Show-Javadoc-in-Maven2-project-td2340256.html
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