SpringBoot 3.0.0-M1 + SpringCloud 2022.0.0-M1 [错误] 'dependency.version' for org.springframework.cloud:spring-cloud-starter-sleuth:jar 丢失
SpringBoot 3.0.0-M1 + SpringCloud 2022.0.0-M1 [ERROR] 'dependency.version' for org.springframework.cloud:spring-cloud-starter-sleuth:jar is missing
随着 SpringBoot 3.0.0-M1 和 SpringCloud 2022.0.0-M1 的激动人心的发布,我继续提升版本。
https://spring.io/blog/2022/01/20/spring-boot-3-0-0-m1-is-now-available
https://spring.io/blog/2022/01/27/spring-cloud-2022-0-0-m1-codename-kilburn-has-been-released
虽然在我的 SpringBoot 2.6.3 + Jubilee 上一切正常,代码完全相同,只是 pom 文件的版本更改为新的一对 SpringBoot 3.0。 0-M1 + SpringCloud 2022.0.0-M1,观察到如下错误。
/Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=abc -Dmaven.home=maven3 [...] -Didea.version=2021.3.1 clean install
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-sleuth:jar is missing. @ line xx, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-sleuth-zipkin:jar is missing. @ line xx, column 21
@
根据 Spring 云官方文档:
Spring Cloud Sleuth
Spring Cloud Sleuth’s last minor version is 3.1. You can check the 3.1.x branch for the latest commits.
The core of this project got moved to Micrometer Tracing project and the instrumentations will be moved to Micrometer and all respective projects (no longer all instrumentations will be done in a single repository.
我很难理解。这是否意味着从 3.0/2022.0 开始,就没有 Sleuth 了?我们需要改用千分尺吗?
请问如何保留 Sleuth 提供的现有功能?
谢谢
I am having a hard time understanding. Does it mean from 3.0/2022.0 onward, there is no Sleuth anymore? We need to use Micrometer instead?
是
How to keep existing features offered by Sleuth please?
我们将通过 Micrometer 和 Micrometer Tracing 为那些人提供支持。
does it means we can just remove the Sleuth dependency from the pom file, and instead add/replace with the micrometer one, and things will be the same, still be working?
如果您没有任何自定义 Sleuth 配置,那么您应该无需执行任何操作即可使可观察性发挥作用。如果您有自定义 Sleuth 配置,则需要将其移植到 Micrometer Tracing,它本质上是 Sleuth 的副本,所以这应该主要是包更改。如果您正在进行 Brave 定制,那么您很可能没有什么可更改的。
随着 SpringBoot 3.0.0-M1 和 SpringCloud 2022.0.0-M1 的激动人心的发布,我继续提升版本。
https://spring.io/blog/2022/01/20/spring-boot-3-0-0-m1-is-now-available
https://spring.io/blog/2022/01/27/spring-cloud-2022-0-0-m1-codename-kilburn-has-been-released
虽然在我的 SpringBoot 2.6.3 + Jubilee 上一切正常,代码完全相同,只是 pom 文件的版本更改为新的一对 SpringBoot 3.0。 0-M1 + SpringCloud 2022.0.0-M1,观察到如下错误。
/Library/Java/JavaVirtualMachines/jdk-17.0.2.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=abc -Dmaven.home=maven3 [...] -Didea.version=2021.3.1 clean install
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-sleuth:jar is missing. @ line xx, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-sleuth-zipkin:jar is missing. @ line xx, column 21
@
根据 Spring 云官方文档:
Spring Cloud Sleuth
Spring Cloud Sleuth’s last minor version is 3.1. You can check the 3.1.x branch for the latest commits.
The core of this project got moved to Micrometer Tracing project and the instrumentations will be moved to Micrometer and all respective projects (no longer all instrumentations will be done in a single repository.
我很难理解。这是否意味着从 3.0/2022.0 开始,就没有 Sleuth 了?我们需要改用千分尺吗?
请问如何保留 Sleuth 提供的现有功能?
谢谢
I am having a hard time understanding. Does it mean from 3.0/2022.0 onward, there is no Sleuth anymore? We need to use Micrometer instead?
是
How to keep existing features offered by Sleuth please?
我们将通过 Micrometer 和 Micrometer Tracing 为那些人提供支持。
does it means we can just remove the Sleuth dependency from the pom file, and instead add/replace with the micrometer one, and things will be the same, still be working?
如果您没有任何自定义 Sleuth 配置,那么您应该无需执行任何操作即可使可观察性发挥作用。如果您有自定义 Sleuth 配置,则需要将其移植到 Micrometer Tracing,它本质上是 Sleuth 的副本,所以这应该主要是包更改。如果您正在进行 Brave 定制,那么您很可能没有什么可更改的。