升级到 Spring boot 2.5.1 和 spring cloud 2020.0.3 时,Netflix zuul 和 ribbon 的 Maven 依赖性有什么区别

is there any difference in maven dependency for Netflix zuul and ribbon while upgrading to Spring boot 2.5.1 and spring cloud 2020.0.3

我正在尝试将我的 spring 引导版本从 2.1.5.RELEASE 升级到 2.5.1,因此我已将 spring 云版本从 Greenwich.RELEASE 更改为2020.0.3 根据发布序列 Spring spring 云的启动兼容性。我也在我的项目中使用 spring-cloud-starter-netflix-zuul 和 spring-cloud-starter-netflix-ribbon。我面临的问题是当我构建 Maven 时,出现如下错误

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-netflix-zuul:jar is missing. @ com.xx.xxx.xxx:[unknown-version], C:\Users\xx\pom.xml, line xx, column xx
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-netflix-ribbon:jar is missing. @ com.xx.xxx.xxxh:[unknown-version], C:\Users\xx\pom.xml, line xx, column xx

我的pom文件如下

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.5.1</version>
    </parent>
    <repositories>
    </repositories>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>2020.0.3</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
        </dependency>
...

任何人都可以帮助解决此错误,在此先感谢

许多以前处于维护模式的 Netflix 相关模块已 removed in Spring Cloud 2020. This includes Ribbon and Zuul which you are using. The Spring Cloud team recommend 将 Ribbon 替换为 Spring Cloud Loadbalancer 并将 Zuul 替换为 Spring Cloud Gateway。

spring-cloud 和 netflix-zuul 将按以下版本运行。

spring-boot-starter-parent: 2.1.3.RELEASE
java.version: 1.8
spring-cloud.version: Greenwich.RELEASE
spring-cloud-starter-netflix-zuul: 2.1.0.RELEASE
spring-cloud-starter-netflix-eureka-client: 2.1.0.RELEASE
jackson-dataformat-xml: 2.9.9
spring-cloud-starter-netflix-eureka-server: 2.1.0.RELEASE

Spring removed zuul after 2.4.0 so it better to use below versions for smooth excution.

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.3.RELEASE</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>

<properties>
    <java.version>1.8</java.version>
    <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
</properties>


<dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
    </dependency>