錯誤:
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-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>