spring-cloud-netflix icon indicating copy to clipboard operation
spring-cloud-netflix copied to clipboard

dependencies has conflict

Open coldingcode opened this issue 7 years ago • 5 comments

i have a company dependencies pom on spring cloud Greenwich.SR2. it add spring cloud openfeing、spring cloud hystrix、spring cloud ribbon. then other company project make this pom as parent will happend com.netflix.hystrix.core:hystrix-core:1.4.26 (right version 1.5.18 on sping cloud netflix dependencies) com.netflix.archaius:archauis-core:0.6.6 (right version : 0.7.6 on spring cloud netflix dependencies)

coldingcode avatar Jul 29 '19 06:07 coldingcode

Are you using any explicit versions manually? Can you please upload the whole pom of yours? It would be even better if you upload the whole sample

marcingrzejszczak avatar Jul 29 '19 14:07 marcingrzejszczak

issue_pom.txt

coldingcode avatar Jul 30 '19 02:07 coldingcode

Please remove the version of spring-cloud-starter-openfeign in your pom to rely on the dependency management from Spring Cloud.

I can't replicate this issue though: mvn dependency:tree -Dverbose -Dincludes=com.netflix.archaius:archaius-core:

com.demo.basic:com-demo-basic:jar:1.2.3-SNAPSHOT
\- org.springframework.cloud:spring-cloud-starter-openfeign:jar:2.1.2.RELEASE:compile
   \- io.github.openfeign:feign-hystrix:jar:10.2.3:compile
      \- com.netflix.archaius:archaius-core:jar:0.7.6:compile

mvn dependency:tree -Dverbose -Dincludes=com.netflix.hystrix:hystrix-core:

com.demo.basic:com-demo-basic:jar:1.2.3-SNAPSHOT
\- org.springframework.cloud:spring-cloud-starter-openfeign:jar:2.1.2.RELEASE:compile
   \- io.github.openfeign:feign-hystrix:jar:10.2.3:compile
      \- com.netflix.hystrix:hystrix-core:jar:1.5.18:compile

So what exactly are you doing here? The pom file you added to this issue acts as the parent? If that's the case there is something wrong in the other pom file since this one resolves the correct dependencies AFAIC.

TYsewyn avatar Jul 30 '19 08:07 TYsewyn

I‘m so sorry for open this issue this problem exists when i using spring cloud Greenwich SR 1 also at that time specify the version of spring cloud openfeign when I try to fix above problem above problem has disappeared when I update spring cloud version is Greenwich SR2. i dont have enough test , that's my fault. but the problem still exists in the Greenwich SR1 version Best Regards Eightmonth

coldingcode avatar Jul 30 '19 09:07 coldingcode

No reason to be sorry, every issue can be a valid one :) Greenwich.SR2 is the latest service release, so I'd encourage you to use this version. I'm going to close this issue as you said it is not reproducible with that version.

TYsewyn avatar Jul 30 '19 11:07 TYsewyn