当设置了springcloud依赖版本后
<!--Spring Cloud 版本序列配置-->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
加载 指定的maven依赖 ,下载不下来
<!--eureka服务注册发现 客户端-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>
maven -clean 的时候报错提示:
'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka:jar is missing
原因: 后面版本各个组件的名字已经发生了变化
当然你也可以指定具体version,但是和其他版本是否兼容就看自己的了
<!--eureka服务注册发现 客户端-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
<version>1.3.0.RELEASE</version>
</dependency>
springcloud组件名字变化的地址:
https: