什么是释放火车宝? [英] What is Release Train Bom?

查看:114
本文介绍了什么是释放火车宝?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理Spring云合同文档,并且从

I am working on Spring cloud contract documentation and I have seen a comment in dependency from Spring cloud documentation and would like to know what exactly is this <!-- If you're adding this dependency explicitly you have to add it *BEFORE* the Release Train BOM-->

推荐答案

BOM是物料清单的首字母缩写:对于您的功能,您需要其他项目,每个项目都有不同的版本.使用Bom,您可以在一个位置上获得此类项目的兼容/测试/需要的版本的列表.

A BOM is the acronym for Bill of Materials: for your features, you need other projects, each of them with different versions. With a bom you get a list of compatible/tested/needed versions of such projects, all in one place.

spring-data 中所述,这是发布培训 >是具有名称而不是版本(以避免混淆)的BOM,名称按字母顺序排列.

As explained in spring-data, a release train is a BOM with a name instead of a version (to avoid confusions) and the names are ordered alphabetically.

如果您想覆盖发布培训中编写的版本之一,则必须在发布培训本身之前放置该显式依赖项. 因此,在您链接的文档中,就是说,如果要使用工件 spring-cloud-contract-dependencies 的版本 2.0.0.RC2 (例如)之前:

If you want to override one of the versions written in the release train, you have to put that explicit dependency before the release train itself. So in the doc you linked, it is saying, if you want to use the version 2.0.0.RC2 of the artifact spring-cloud-contract-dependencies, put it (for example) before:

<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).

because the Finchley.RC1 includes a different version of that dependency (in this case 2.0.0.RC1).

这篇关于什么是释放火车宝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆