我的 Jenkins 中的 JavaDoc 在哪里

发布于 2024-12-18 17:55:11 字数 1177 浏览 3 评论 0原文

我必须在哪里配置 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不离久伴 2024-12-25 17:55:11

对于自由式作业
如果您已经安装了 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文