Non-resolvable import POM: Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:

错误:

Non-resolvable import POM: Failure to find org.springframework.cloud:spring-cloud-dependencies:pom:Greenwich.M1
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 nexus-aliyun has elapsed or updates are forced @ line 55, column 25 -> [Help 2]

模块和模块之间无法依赖,后来发现是Spring Cloud的依赖引入有问题。

但直接看依赖的坐标是没问题的,可以进入到Greenwich.M1版本的Spring Cloud。

之前的微服务项目是可行的,于是我去之前的pom文件看了眼,发现少了项配置。

解决:

需要在pom文件中添加:

<repositories>
    <repository>
         <id>spring-milestonesid>
         <name>Spring Milestonesname>
         <url>https://repo.spring.io/milestoneurl>
         <snapshots>
             <enabled>falseenabled>
         snapshots>
    repository>
repositories>

你可能感兴趣的:(错误集)