Springcloud的版本依赖问题version
写在前面
当我们使用SpringCloud时候,需要引入依赖管理,如下图,以下内容就总结下 version的问题
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.SR2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
一、Greenwich 系列(按照从最新系列介绍)
1.1、Greenwich.SR1
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies-parent</artifactId>
<version>2.1.3.RELEASE</version>
<relativePath/>
</parent>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR1</version>
<name>spring-cloud-dependencies</name>
<description>Spring Cloud Dependencies</description>
<packaging>pom</packaging>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<spring-cloud-aws.version>2.1.1.RELEASE</spring-cloud-aws.version>
<spring-cloud-bus.version>2.1.1.RELEASE</spring-cloud-bus.version>
<spring-cloud-cloudfoundry.version>2.1.1.RELEASE</spring-cloud-cloudfoundry.version>
<spring-cloud-commons.version>2.1.1.RELEASE</spring-cloud-commons.version>
<spring-cloud-config.version>2.1.1.RELEASE</spring-cloud-config.version>
<spring-cloud-consul.version>2.1.1.RELEASE</spring-cloud-consul.version>
<spring-cloud-contract.version>2.1.1.RELEASE</spring-cloud-contract.version>
<spring-cloud-function.version>2.0.1.RELEASE</spring-cloud-function.version>
<spring-cloud-gateway.version>2.1.1.RELEASE</spring-cloud-gateway.version>
<spring-cloud-gcp.version>1.1.1.RELEASE</spring-cloud-gcp.version>
<spring-cloud-kubernetes.version>1.0.1.RELEASE</spring-cloud-kubernetes.version>
<spring-cloud-netflix.version>2.1.1.RELEASE</spring-cloud-netflix.version>
<spring-cloud-openfeign.version>2.1.1.RELEASE</spring-cloud-openfeign.version>
<spring-cloud-security.version>2.1.2.RELEASE</spring-cloud-security.version>
<spring-cloud-sleuth.version>2.1.1.RELEASE</spring-cloud-sleuth.version>
<spring-cloud-stream.version>Fishtown.SR2</spring-cloud-stream.version>
<spring-cloud-task.version>2.1.1.RELEASE</spring-cloud-task.version>
<spring-cloud-vault.version>2.1.1.RELEASE</spring-cloud-vault.version>
<spring-cloud-zookeeper.version>2.1.1.RELEASE</spring-cloud-zookeeper.version>
</properties>
1.2、Greenwich.SR2
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/>
</parent>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR2</version>
<name>spring-cloud-dependencies</name>
<description>Spring Cloud Dependencies</description>
<packaging>pom</packaging>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<spring-cloud-aws.version>2.1.2.RELEASE</spring-cloud-aws.version>
<spring-cloud-bus.version>2.1.2.RELEASE</spring-cloud-bus.version>
<spring-cloud-cloudfoundry.version>2.1.2.RELEASE</spring-cloud-cloudfoundry.version>
<spring-cloud-commons.version>2.1.2.RELEASE</spring-cloud-commons.version>
<spring-cloud-config.version>2.1.3.RELEASE</spring-cloud-config.version>
<spring-cloud-consul.version>2.1.2.RELEASE</spring-cloud-consul.version>
<spring-cloud-contract.version>2.1.2.RELEASE</spring-cloud-contract.version>
<spring-cloud-function.version>2.0.2.RELEASE</spring-cloud-function.version>
<spring-cloud-gateway.version>2.1.2.RELEASE</spring-cloud-gateway.version>
<spring-cloud-gcp.version>1.1.2.RELEASE</spring-cloud-gcp.version>
<spring-cloud-kubernetes.version>1.0.2.RELEASE</spring-cloud-kubernetes.version>
<spring-cloud-netflix.version>2.1.2.RELEASE</spring-cloud-netflix.version>
<spring-cloud-openfeign.version>2.1.2.RELEASE</spring-cloud-openfeign.version>
<spring-cloud-security.version>2.1.3.RELEASE</spring-cloud-security.version>
<spring-cloud-sleuth.version>2.1.2.RELEASE</spring-cloud-sleuth.version>
<spring-cloud-stream.version>Fishtown.SR3</spring-cloud-stream.version>
<spring-cloud-task.version>2.1.2.RELEASE</spring-cloud-task.version>
<spring-cloud-vault.version>2.1.2.RELEASE</spring-cloud-vault.version>
<spring-cloud-zookeeper.version>2.1.2.RELEASE</spring-cloud-zookeeper.version>
</properties>
1.3、Greenwich.SR3
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies-parent</artifactId>
<version>2.1.7.RELEASE</version>
<relativePath/>
</parent>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR3</version>
<name>spring-cloud-dependencies</name>
<description>Spring Cloud Dependencies</description>
<packaging>pom</packaging>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<spring-cloud-aws.version>2.1.3.RELEASE</spring-cloud-aws.version>
<spring-cloud-bus.version>2.1.3.RELEASE</spring-cloud-bus.version>
<spring-cloud-cloudfoundry.version>2.1.3.RELEASE</spring-cloud-cloudfoundry.version>
<spring-cloud-commons.version>2.1.3.RELEASE</spring-cloud-commons.version>
<spring-cloud-config.version>2.1.4.RELEASE</spring-cloud-config.version>
<spring-cloud-consul.version>2.1.3.RELEASE</spring-cloud-consul.version>
<spring-cloud-contract.version>2.1.3.RELEASE</spring-cloud-contract.version>
<spring-cloud-function.version>2.0.2.RELEASE</spring-cloud-function.version>
<spring-cloud-gateway.version>2.1.3.RELEASE</spring-cloud-gateway.version>
<spring-cloud-gcp.version>1.1.3.RELEASE</spring-cloud-gcp.version>
<spring-cloud-kubernetes.version>1.0.3.RELEASE</spring-cloud-kubernetes.version>
<spring-cloud-netflix.version>2.1.3.RELEASE</spring-cloud-netflix.version>
<spring-cloud-openfeign.version>2.1.3.RELEASE</spring-cloud-openfeign.version>
<spring-cloud-security.version>2.1.4.RELEASE</spring-cloud-security.version>
<spring-cloud-sleuth.version>2.1.3.RELEASE</spring-cloud-sleuth.version>
<spring-cloud-stream.version>Fishtown.SR4</spring-cloud-stream.version>
<spring-cloud-task.version>2.1.3.RELEASE</spring-cloud-task.version>
<spring-cloud-vault.version>2.1.3.RELEASE</spring-cloud-vault.version>
<spring-cloud-zookeeper.version>2.1.3.RELEASE</spring-cloud-zookeeper.version>
</properties>
1.4、Greenwich.RELEASE
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies-parent</artifactId>
<version>2.1.2.RELEASE</version>
<relativePath/>
</parent>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.RELEASE</version>
<name>spring-cloud-dependencies</name>
<description>Spring Cloud Dependencies</description>
<packaging>pom</packaging>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<spring-cloud-aws.version>2.1.0.RELEASE</spring-cloud-aws.version>
<spring-cloud-bus.version>2.1.0.RELEASE</spring-cloud-bus.version>
<spring-cloud-cloudfoundry.version>2.1.0.RELEASE</spring-cloud-cloudfoundry.version>
<spring-cloud-commons.version>2.1.0.RELEASE</spring-cloud-commons.version>
<spring-cloud-config.version>2.1.0.RELEASE</spring-cloud-config.version>
<spring-cloud-consul.version>2.1.0.RELEASE</spring-cloud-consul.version>
<spring-cloud-contract.version>2.1.0.RELEASE</spring-cloud-contract.version>
<spring-cloud-function.version>2.0.0.RELEASE</spring-cloud-function.version>
<spring-cloud-gateway.version>2.1.0.RELEASE</spring-cloud-gateway.version>
<spring-cloud-gcp.version>1.1.0.RELEASE</spring-cloud-gcp.version>
<spring-cloud-kubernetes.version>1.0.0.RELEASE</spring-cloud-kubernetes.version>
<spring-cloud-netflix.version>2.1.0.RELEASE</spring-cloud-netflix.version>
<spring-cloud-openfeign.version>2.1.0.RELEASE</spring-cloud-openfeign.version>
<spring-cloud-security.version>2.1.0.RELEASE</spring-cloud-security.version>
<spring-cloud-sleuth.version>2.1.0.RELEASE</spring-cloud-sleuth.version>
<spring-cloud-stream.version>Fishtown.RELEASE</spring-cloud-stream.version>
<spring-cloud-task.version>2.1.0.RELEASE</spring-cloud-task.version>
<spring-cloud-vault.version>2.1.0.RELEASE</spring-cloud-vault.version>
<spring-cloud-zookeeper.version>2.1.0.RELEASE</spring-cloud-zookeeper.version>
</properties>
二、Finchley 系列
2.1、Finchley.SR1
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies-parent</artifactId>
<version>2.0.3.RELEASE</version>
<relativePath/>
</parent>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.SR1</version>
<name>spring-cloud-dependencies</name>
<description>Spring Cloud Dependencies</description>
<packaging>pom</packaging>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<spring-cloud-aws.version>2.0.0.RELEASE</spring-cloud-aws.version>
<spring-cloud-bus.version>2.0.0.RELEASE</spring-cloud-bus.version>
<spring-cloud-cloudfoundry.version>2.0.0.RELEASE</spring-cloud-cloudfoundry.version>
<spring-cloud-commons.version>2.0.1.RELEASE</spring-cloud-commons.version>
<spring-cloud-config.version>2.0.1.RELEASE</spring-cloud-config.version>
<spring-cloud-consul.version>2.0.1.RELEASE</spring-cloud-consul.version>
<spring-cloud-contract.version>2.0.1.RELEASE</spring-cloud-contract.version>
<spring-cloud-function.version>1.0.0.RELEASE</spring-cloud-function.version>
<spring-cloud-gateway.version>2.0.1.RELEASE</spring-cloud-gateway.version>
<spring-cloud-netflix.version>2.0.1.RELEASE</spring-cloud-netflix.version>
<spring-cloud-openfeign.version>2.0.1.RELEASE</spring-cloud-openfeign.version>
<spring-cloud-security.version>2.0.0.RELEASE</spring-cloud-security.version>
<spring-cloud-sleuth.version>2.0.1.RELEASE</spring-cloud-sleuth.version>
<spring-cloud-stream.version>Elmhurst.SR1</spring-cloud-stream.version>
<spring-cloud-task.version>2.0.0.RELEASE</spring-cloud-task.version>
<spring-cloud-vault.version>2.0.1.RELEASE</spring-cloud-vault.version>
<spring-cloud-zookeeper.version>2.0.0.RELEASE</spring-cloud-zookeeper.version>
</properties>
2.2、Finchley.SR2
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies-parent</artifactId>
<version>2.0.4.RELEASE</version>
<relativePath/>
</parent>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.SR2</version>
<name>spring-cloud-dependencies</name>
<description>Spring Cloud Dependencies</description>
<packaging>pom</packaging>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<spring-cloud-aws.version>2.0.1.RELEASE</spring-cloud-aws.version>
<spring-cloud-bus.version>2.0.0.RELEASE</spring-cloud-bus.version>
<spring-cloud-cloudfoundry.version>2.0.1.RELEASE</spring-cloud-cloudfoundry.version>
<spring-cloud-commons.version>2.0.2.RELEASE</spring-cloud-commons.version>
<spring-cloud-config.version>2.0.2.RELEASE</spring-cloud-config.version>
<spring-cloud-consul.version>2.0.1.RELEASE</spring-cloud-consul.version>
<spring-cloud-contract.version>2.0.2.RELEASE</spring-cloud-contract.version>
<spring-cloud-function.version>1.0.0.RELEASE</spring-cloud-function.version>
<spring-cloud-gateway.version>2.0.2.RELEASE</spring-cloud-gateway.version>
<spring-cloud-netflix.version>2.0.2.RELEASE</spring-cloud-netflix.version>
<spring-cloud-openfeign.version>2.0.2.RELEASE</spring-cloud-openfeign.version>
<spring-cloud-security.version>2.0.1.RELEASE</spring-cloud-security.version>
<spring-cloud-sleuth.version>2.0.2.RELEASE</spring-cloud-sleuth.version>
<spring-cloud-stream.version>Elmhurst.SR1</spring-cloud-stream.version>
<spring-cloud-task.version>2.0.0.RELEASE</spring-cloud-task.version>
<spring-cloud-vault.version>2.0.2.RELEASE</spring-cloud-vault.version>
<spring-cloud-zookeeper.version>2.0.0.RELEASE</spring-cloud-zookeeper.version>
</properties>
2.3、Finchley.SR3
这个不知道为什么会找不到相关的依赖
2.4、Finchley.SR4
这个不知道为什么会找不到相关的依赖
2.5、Finchley.RELEASE
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies-parent</artifactId>
<version>2.0.2.RELEASE</version>
<relativePath/>
</parent>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.RELEASE</version>
<name>spring-cloud-dependencies</name>
<description>Spring Cloud Dependencies</description>
<packaging>pom</packaging>
<properties>
<main.basedir>${basedir}/../..</main.basedir>
<spring-cloud-aws.version>2.0.0.RELEASE</spring-cloud-aws.version>
<spring-cloud-bus.version>2.0.0.RELEASE</spring-cloud-bus.version>
<spring-cloud-cloudfoundry.version>2.0.0.RELEASE</spring-cloud-cloudfoundry.version>
<spring-cloud-commons.version>2.0.0.RELEASE</spring-cloud-commons.version>
<spring-cloud-config.version>2.0.0.RELEASE</spring-cloud-config.version>
<spring-cloud-consul.version>2.0.0.RELEASE</spring-cloud-consul.version>
<spring-cloud-contract.version>2.0.0.RELEASE</spring-cloud-contract.version>
<spring-cloud-function.version>1.0.0.RELEASE</spring-cloud-function.version>
<spring-cloud-gateway.version>2.0.0.RELEASE</spring-cloud-gateway.version>
<spring-cloud-netflix.version>2.0.0.RELEASE</spring-cloud-netflix.version>
<spring-cloud-openfeign.version>2.0.0.RELEASE</spring-cloud-openfeign.version>
<spring-cloud-security.version>2.0.0.RELEASE</spring-cloud-security.version>
<spring-cloud-sleuth.version>2.0.0.RELEASE</spring-cloud-sleuth.version>
<spring-cloud-stream.version>Elmhurst.RELEASE</spring-cloud-stream.version>
<spring-cloud-task.version>2.0.0.RELEASE</spring-cloud-task.version>
<spring-cloud-vault.version>2.0.0.RELEASE</spring-cloud-vault.version>
<spring-cloud-zookeeper.version>2.0.0.RELEASE</spring-cloud-zookeeper.version>
</properties>
后面的版本都稍微有点低了,这里就不列出相关的基础依赖了