Non-resolvable import POM: Failure to find Dalston.RC1 in was cached in the local repository
发布日期:2021-06-30 12:19:13 浏览次数:2 分类:技术文章

本文共 2310 字,大约阅读时间需要 7 分钟。

在用Docker部署Spring Cloud项目的时候,执行:mvn package docker:build命令,报如下错误:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[ERROR] Non-resolvable import POM: Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:Dalston.RC1 in http://47.92.24.162:8081/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced @ line 43, column 16

[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka-server:jar is missing. @ line 29, column 15

 @ 

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]   

[ERROR]   The project com.forezp:eureka-server:0.0.1-SNAPSHOT (/Users/Vino/百度云同步盘/Github/SpringCloudLearning/chapter11-2/eureka-server/pom.xml) has 2 errors

[ERROR]     Non-resolvable import POM: Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:Dalston.RC1 in http://127.0.0.1:8888/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced @ line 43, column 16 -> [Help 2]

[ERROR]     'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-eureka-server:jar is missing. @ line 29, column 15

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

检查发现pom.xml中:

org.springframework.cloud
spring-cloud-dependencies
Dalston.RC1
pom
import

把Dalston.RC1改为Dalston.SR4:

org.springframework.cloud
spring-cloud-dependencies
Dalston.SR4
pom
import

 

转载地址:https://java-basketball.blog.csdn.net/article/details/78544834 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Failed to com.spotify:docker-maven-plugin:HttpHostConnectException:Connect to localhost:2375
下一篇:Mac下安装Docker

发表评论

最新留言

表示我来过!
[***.240.166.169]2024年04月16日 07时43分22秒