如何更新使用的 quarkus 版本 [英] How to update the quarkus version used

查看:47
本文介绍了如何更新使用的 quarkus 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级现有应用程序中使用的 quarkus 版本的推荐方法是什么?

What is the recommended way of upgrading the quarkus version used in an existing application?

我查看了我的 pom.xml,因为 quarkus 扩展没有指定使用的版本,我假设它们将根据主 quarkus 版本进行更新.与更新相关的属性是 quarkus-plugin.version、quarkus.platform.group-id 和 surefire-plugin.version.我如何决定要更改哪些内容?还有什么需要注意的吗?

I have taken a look at my pom.xml, since the quarkus extensions dont specify the version used, I assume that they will get updated based on the main quarkus version. The properties which look to be relevant in the update are quarkus-plugin.version, quarkus.platform.group-id and surefire-plugin.version. How can I decide which ones to change, and is there anything else to be aware of?

推荐答案

有一件重要的事情要知道,我们有:

There is one important thing to know, we have:

  • Quarkus Core:这是主要的 Quarkus 工件 + 所有核心扩展:quarkus-bom 是 Core 之一.Quarkus Maven 插件也是其中的一部分.
  • Quarkus 平台:它包含更多扩展,例如 Camel Quarkus:quarkus-universe-bom 是平台中的一个,它包含核心 + 附加扩展

我们通常会发布 Quarkus 核心,然后是 Quarkus 平台,两者之间间隔几天,因为我们经常需要发布 Camel Quarkus,这是一个 Apache 项目,并为每个版本组织 72 小时的投票.

We usually release Quarkus core then Quarkus Platform with a few days between the two as we often need a release of Camel Quarkus, which is an Apache project and organizes a 72 hours vote for each release.

在新创建的项目中,您具有以下属性:

In a newly created project, you have the following properties:

    <quarkus-plugin.version>1.1.1.Final</quarkus-plugin.version>
    <quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id>
    <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
    <quarkus.platform.version>1.1.1.Final</quarkus.platform.version>

  • quarkus-plugin.version是Quarkus Maven插件的版本,应该和你使用的内核版本一致
  • quarkus.platform.artifact-id 现在可以是整个平台的 quarkus-universe-bom 或只是 quarkus-bom仅适用于核心.
  • quarkus.platform.version 是 BOM 的版本.
    • quarkus-plugin.version is the version of the Quarkus Maven plugin, it should be in line with the version of the core you use
    • quarkus.platform.artifact-id can right now either be quarkus-universe-bom for the whole Platform or just quarkus-bom for the Core only.
    • quarkus.platform.version is the version of the BOM.
    • 通常所有这些版本都应该对齐.但是……我们可能需要对平台而不是核心进行一些快速更新,然后我们只能发布平台的新版本.老实说,这还没有发生.

      Usually all these versions should be aligned. But... it could happen that we would need some quick update in the Platform and not of the core and we could then only release a new version of the platform. This hasn't happened yet to be honest.

      让我们以今天发生的事情为例:我发布了 Quarkus Core 1.2.0.Final,但我们仍在等待 Camel Quarkus 发布以发布平台.

      Let's take an example of what happened today: I released Quarkus Core 1.2.0.Final but we are still waiting for Camel Quarkus to be released to release the Platform.

      如果你想提前更新,你可以将 BOM 更改为使用 quarkus-bom 并将所有内容更新为 1.2.0.Final.

      If you want to update early, you can change the BOM to use the quarkus-bom and update everything to 1.2.0.Final.

      或者你可以等待平台下周初发布并留在平台quarkus-universe-bom.

      Or you can wait for the Platform to be released early next week and stay on the Platform quarkus-universe-bom.

      我们也仅在完整平台发布时更新网站文档和 code.quarkus.io.

      We also only update the website documentation and code.quarkus.io when the full Platform is released.

      这篇关于如何更新使用的 quarkus 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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