gpt4 book ai didi

dependencies - 什么是发布火车 Bom?

转载 作者:行者123 更新时间:2023-12-04 05:00:13 25 4
gpt4 key购买 nike

我正在处理 Spring Cloud 契约(Contract)文档,我看到了来自 Spring cloud documentation 的依赖评论。并想知道这究竟是什么<!-- If you're adding this dependency explicitly you have to
add it *BEFORE* the Release Train BOM-->

最佳答案

BOM 是 的首字母缩写词 Material list :对于您的功能,您需要其他项目,每个项目都有不同的版本。使用 bom,您可以在一个地方获得此类项目的兼容/测试/需要版本列表。

spring-data 中所述, 发布火车是一个带有名称而不是版本的 BOM(以避免混淆),名称按字母顺序排列。

如果您想覆盖发行版中编写的版本之一,则必须在发行版本身之前放置该显式依赖项。
所以在你链接的文档中,它说,如果你想使用工件 spring-cloud-contract-dependencies 的 2.0.0.RC2 版本,把它(例如)放在之前:

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.RC1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

因为 Finchley.RC1 包含该依赖项的不同版本(在本例中为 2.0.0.RC1)。

关于dependencies - 什么是发布火车 Bom?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48708153/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com