在 Jenkins 上添加默认的 Maven 构建配置

发布于 2024-12-05 02:57:49 字数 270 浏览 2 评论 0原文

我正在使用 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 技术交流群。

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

发布评论

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

评论(1

惯饮孤独 2024-12-12 02:57:49

公司 POM,这就是我一直在寻找的。

Corporate POM, that's what I was looking for.

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