使用hudson构建maven项目时自动发布javadoc
我正在使用 Hudson 通过专用的 Maven 2 作业构建 Maven 项目。不幸的是,我找不到任何方法来发布生成的 javadoc,就像使用“自由样式”作业和“发布 javadoc”选项一样。运行 javadoc 目标不会链接生成的 javadoc。
有什么想法吗?
I'm using Hudson to build Maven-projects with the dedicated Maven 2 job. unfortunately, I can't find any way to publish the generated javadoc like it can be done using a "Free Style" job and the "Publish javadoc" option. Running the javadoc goal didn't link the generated javadocs.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
好吧,我能做的最好的事情就是切换到“自由风格”工作……无论如何,Maven 工作对我来说并没有多大作用。
Well, the best I could do was switching to a "Free Style" job...the Maven job isn't doing that much for me anyways.
答案是,在您的 POM 中,您需要将 javadoc 定义为如下报告:
无需切换到自由式项目。之后,Hudson 会将其作为项目视图中的链接发布。我的 Hudson 版本是 1.376。
The answer is, that in your POM you need to define javadoc as a report like this:
There is no need to switch to freestyle project. After it, hudson will publish it as a link in project view. My Hudson version is 1.376.
我正在使用 javadoc:aggregate ,Hudson 会识别它。实际上,它相当于
javadoc:javadoc
ANDsite:site
,因为javadoc:aggregate
也会生成报告。http://maven.apache.org/plugins/maven-javadoc -plugin/plugin-info.html
i'm using
javadoc:aggregate
and Hudson will recognize it. Actually it is equivalent tojavadoc:javadoc
ANDsite:site
asjavadoc:aggregate
generates reporting too.http://maven.apache.org/plugins/maven-javadoc-plugin/plugin-info.html
我们做什么:
-DperformRelease
生成...-javadoc.jar
What we do:
-DperformRelease
in the Maven options to generate the...-javadoc.jar