首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ratpack 1.5.4无法解决hystrix依赖问题

Ratpack 1.5.4无法解决hystrix依赖问题
EN

Stack Overflow用户
提问于 2018-05-06 09:39:10
回答 1查看 516关注 0票数 1

我无法编译使用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"

这里怎么了?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-05-06 21:43:21

您可以尝试将com.netflix:hystrix-core:1.5.13io.ratpack:ratpack-hystrix:1.5.4中排除在外,然后可以将com.netflix:hystrix-core:1.5.12直接添加到pom.xml文件中,如下所示:

代码语言:javascript
复制
    <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是更新的,尽管它是在两个月前发布的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50198285

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档