15

我已经阅读了Maven 文档中的部分,但我还没有真正看到任何插件<ciManagement>在项目 POM 中使用标签的证据。

我的问题是:

  • 是否有 CI 系统会以某种智能方式使用这些信息?
  • 除了项目自我文档之外,在我的项目 POM 中指定和维护这些信息还有其他好处吗?
  • Maven 本身(或任何常见的插件)是否使用此信息?
4

3 回答 3

7

文档示例http://maven.apache.org/plugins/maven-compiler-plugin/integration.html

从历史上看,这个元素被 continuum 使用以获取更多详细信息,请参阅http://maven.apache.org/ref/3.0.4/maven-model/maven.html#class_ciManagement可以定义 pom 通知程序(邮件、irc)和在哪里发送通知。

于 2013-02-07T22:27:43.463 回答
5

SonarQube uses the <ciManagement> element of the pom to define the value of its own sonar.links.ci configuration property. This property is mentioned in the SonarQube documentation, but there's no explanation about what is it used for. It turns out it's one more thing to keep up-to-date. I would try to remove it from the pom to see if any visible issue comes up.

于 2014-02-11T18:09:25.113 回答
5

您可以在此处查找有关哪些类型<ciManagement/>有效的数据。

可能有比指向该哈希更好的方法,但是maven-pluginsrepo 的工作方式很奇怪。

于 2018-03-09T11:40:58.023 回答