spring cloud 和 spring boot引入 版本问题
spring-cloud版本:Finchley.RC1
spring-boot版本:2.0.4.RELEASE
改为:
spring-cloud版本:Finchley.RELEASE
spring-boot版本:2.0.3.RELEASE
问题描述:在本地的缓存仓库中找不到org.springframework.cloud:spring-cloud-dependencies这个依赖
- [ERROR] Non-resolvable import POM: Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:
- Finchley.RC1 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository,
- resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced
- @ com.leyou.parent:leyou:1.0-SNAPSHOT, D:\idea_project\studyproject\leyou\pom.xml, line 44, column 25
- @
一般出现这个问题说明maven配置的镜像中没有这个依赖,
解决办法:更换spring-cloud的版本。
原来的pom配置
spring-cloud版本:Finchley.RC1
spring-boot版本:2.0.4.RELEASE
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.0.3.RELEASE</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <java.version>1.8</java.version>
- <!-- SpringCloud版本,是最新的F系列 -->
- <spring-cloud.version>Finchley.RC1</spring-cloud.version>
- <mybatis.starter.version>1.3.2</mybatis.starter.version>
- <mapper.starter.version>2.0.2</mapper.starter.version>
- <druid.starter.version>1.1.9</druid.starter.version>
- <mysql.version>5.1.32</mysql.version>
- <pageHelper.starter.version>1.2.3</pageHelper.starter.version>
- <leyou.latest.version>1.0.0-SNAPSHOT</leyou.latest.version>
- <fastDFS.client.version>1.26.1-RELEASE</fastDFS.client.version>
- </properties>
更改配置后问题解决了,仓库里可以找得到了:
spring-cloud版本:Finchley.RELEASE
spring-boot版本:2.0.3.RELEASE
-
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.0.3.RELEASE</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
-
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <java.version>1.8</java.version>
- <!-- SpringCloud版本,是最新的F系列 -->
- <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
- <mybatis.starter.version>1.3.2</mybatis.starter.version>
- <mapper.starter.version>2.0.2</mapper.starter.version>
- <druid.starter.version>1.1.9</druid.starter.version>
- <mysql.version>5.1.32</mysql.version>
- <pageHelper.starter.version>1.2.3</pageHelper.starter.version>
- <leyou.latest.version>1.0.0-SNAPSHOT</leyou.latest.version>
- <fastDFS.client.version>1.26.1-RELEASE</fastDFS.client.version>
- </properties>
https://blog.csdn.net/Seven71111/article/details/103000151 标签:spring,boot,版本,RELEASE,2.0,cloud From: https://www.cnblogs.com/sunny3158/p/16652843.html