简体   繁体   中英

“circular” dependencies in Apache ivy

I have a simple ant build with the following ivy dependencies:

<ivy-module version="2.0">
  <info organisation="de.jflex" module="examples.simple"/>
  <dependencies>
    <dependency org="junit" name="junit" rev="4.12"/>
    <dependency org="com.google.guava" name="guava" rev="26.0-jre"/>
    <dependency org="com.google.truth" name="truth" rev="0.36"/>
  </dependencies>
</ivy-module>

ant build fails with:

circular dependency found: com.google.truth#truth;0.36->com.google.testing.compile#compile-testing;0.12->com.google.truth#truth;0.35

But it's not a hard circular dependency: they depend on different versions. How do I work around this?

You are only getting a warning, which is also a default value of the circularDependencyStrategy setting . If you really want to hide this, you can set that attribute to ignore . But it looks like that even if you change this, dependecy resolution will still fail, due to unresolved com.google.gwt#gwt-user;2.8.0: com.google.gwt#gwt;2.8.0->org.sonatype.oss#oss-parent;4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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