在 Jenkins 上添加默认的 Maven 构建配置
我正在使用 Jenkins 为基于 Maven 的项目设置 CI 系统。我想知道是否有一种方法可以指定 Jenkins 上部署的所有项目所通用的构建配置。
例如,我希望所有项目都生成 JavaDoc,因此我需要 maven pom 中的 maven-javadoc-plugin 。据我了解,这不能添加到 settings.xml 文件中。而且我无法访问超级 pom。无论如何,编辑超级 pom 并不是一个好主意。
为所有项目添加通用构建配置文件的最佳方法是什么?
I am setting up a CI system using Jenkins for Maven based projects. I was wondering whether there is a way to specify a build configuration which would be common for all the projects deployed on Jenkins.
For instance, I want all the projects to generate JavaDoc's hence I require the maven-javadoc-plugin in maven pom. As I understand, this can't be added to the settings.xml file. And I don't have access to the super pom. And editing the super pom isn't a good idea anyways.
What is the best way to add a common build profile for all the projects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
公司 POM,这就是我一直在寻找的。
Corporate POM, that's what I was looking for.