我无法编译使用Ratpack 1.5.4的项目,因为Hystrix 1.5.13缺少一个依赖项,无法解决。
http://search.maven.org/#search%7Cga%7C1%7Cg%3A"com.netflix.hystrix"%20AND%20v%3A"1.5.13"
这里怎么了?
发布于 2018-05-06 21:43:21
您可以尝试将com.netflix:hystrix-core:1.5.13从io.ratpack:ratpack-hystrix:1.5.4中排除在外,然后可以将com.netflix:hystrix-core:1.5.12直接添加到pom.xml文件中,如下所示:
<dependencies>
<dependency>
<groupId>io.ratpack</groupId>
<artifactId>ratpack-core</artifactId>
<version>1.5.4</version>
</dependency>
<dependency>
<groupId>io.ratpack</groupId>
<artifactId>ratpack-hystrix</artifactId>
<version>1.5.4</version>
<exclusions>
<exclusion>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-core</artifactId>
<version>1.5.12</version>
</dependency>
</dependencies>我测试了这个简单的Maven Ratpack“你好,世界!”app https://github.com/wololock/ratpack-maven-example
它在Travis中编译,没有任何问题- https://travis-ci.org/wololock/ratpack-maven-example (我在本地.m2存储库中有com.netflix:hystrix-core:1.5.13,所以我想使用一个干净的本地Maven存储库,比如Travis )。
我不知道1.5.13版本是回滚了还是类似的东西。它可以在MvnRepository.com https://mvnrepository.com/artifact/com.netflix.hystrix/hystrix-core/1.5.13中找到,但是它说1.5.12是更新的,尽管它是在两个月前发布的。
https://stackoverflow.com/questions/50198285
复制相似问题