简体   繁体   English

Ratpack 1.5.4 hystrix依赖关系无法解决

[英]Ratpack 1.5.4 hystrix dependency cannot be resolved

I cannot compile my project that uses Ratpack 1.5.4 because there is a missing dependency to Hystrix 1.5.13 which cannot be resolved. 我无法编译使用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" http://search.maven.org/#search%7Cga%7C1%7Cg%3A"com.netflix.hystrix"%20AND%20v%3A"1.5.13“

What is wrong here? 怎么了

You can try excluding com.netflix:hystrix-core:1.5.13 from io.ratpack:ratpack-hystrix:1.5.4 and then you can add com.netflix:hystrix-core:1.5.12 directly to your pom.xml file, something like that: 您可以尝试从io.ratpack:ratpack-hystrix:1.5.4排除com.netflix:hystrix-core:1.5.13 ,然后可以将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>

I've tested this simple Maven Ratpack "Hello, World!" 我已经测试了这个简单的Maven Ratpack“你好,世界!” app https://github.com/wololock/ratpack-maven-example 应用https://github.com/wololock/ratpack-maven-example

It compiles in Travis without any issue - https://travis-ci.org/wololock/ratpack-maven-example (I have com.netflix:hystrix-core:1.5.13 in my local .m2 repository, so I wanted to use something with a clean local Maven repository like Travis CI) 它编译特拉维斯没有任何问题- https://travis-ci.org/wololock/ratpack-maven-example (我com.netflix:hystrix-core:1.5.13在我的本地库的.m2,所以我想在干净的本地Maven存储库中使用某些东西,例如Travis CI)

I don't know if version 1.5.13 got rolled back or something like that. 我不知道1.5.13版本是否回滚或类似的东西。 It can be found in MvnRepository.com https://mvnrepository.com/artifact/com.netflix.hystrix/hystrix-core/1.5.13 however it says that 1.5.12 is newer, even though it got released 2 months earlier. 可以在MvnRepository.com https://mvnrepository.com/artifact/com.netflix.hystrix/hystrix-core/1.5.13中找到它,但是它说1.5.12是较新的,即使它是在两个月前发布的。

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

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