简体   繁体   English

Spring Cloud Consul依赖

[英]Spring Cloud Consul dependency

Trying out Spring Cloud Consul( http://cloud.spring.io/spring-cloud-consul/ ) however I am running into issues with dependencies. 试用Spring Cloud Consul( http://cloud.spring.io/spring-cloud-consul/ ),但是我遇到了有关依赖项的问题。 Gradle is reporting that the artifacts dont exist: Gradle报告工件不存在:

Resource missing. [HTTP GET: http://repo.spring.io/milestone/org/springframework/cloud/spring-cloud-starter-consul-all/1.0.0.M1/spring-cloud-starter-consul-all-1.0.0.M1.pom]
Resource missing. [HTTP HEAD: http://repo.spring.io/milestone/org/springframework/cloud/spring-cloud-starter-consul-all/1.0.0.M1/spring-cloud-starter-consul-all-1.0.0.M1.jar]

I browsed under http://repo.spring.io/milestone/org/springframework/cloud and tried to add cloud-consul and other repos but they seem to generating more build errors. 我浏览了http://repo.spring.io/milestone/org/springframework/cloud,并尝试添加cloud-consul和其他存储库,但它们似乎会产生更多的构建错误。

The starters are not part of 1.0.0.M1, they will be part of 1.0.0.M2. 启动器不属于1.0.0.M1,它们将属于1.0.0.M2。 You can find them in the snapshot repo . 您可以在快照存储库中找到它们。

Just change your config to 只需将您的配置更改为

dependencies {
    compile 'org.springframework.cloud:spring-cloud-consul:1.0.0.M1'
}repositories {
    maven {
        url 'http://repo.spring.io/milestone'
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM