Non-resolvable import POM: Failure to find Dalston.RC1 in was cached in the local repository

来源:互联网 发布:电脑桌面提示语软件 编辑:程序博客网 时间:2024/05/16 19:55

在用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中:

<dependencyManagement>   <dependencies>      <dependency>         <groupId>org.springframework.cloud</groupId>         <artifactId>spring-cloud-dependencies</artifactId>         <version>Dalston.RC1</version>         <type>pom</type>         <scope>import</scope>      </dependency>   </dependencies></dependencyManagement>

把Dalston.RC1改为Dalston.SR4:

<dependencyManagement>   <dependencies>      <dependency>         <groupId>org.springframework.cloud</groupId>         <artifactId>spring-cloud-dependencies</artifactId>         <version>Dalston.SR4</version>         <type>pom</type>         <scope>import</scope>      </dependency>   </dependencies></dependencyManagement>



阅读全文
0 0