Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1404

Local conflict managers in ivy.xml not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.5.0-rc1
    • Core
    • None

    Description

      I'm trying to retrieve the single dependency selenium-server from maven-central, using the default conflict manager "latest-compatible".

      This leads to an error because "xml-apis" is referenced in two different versions. Setting the default resolver to latest-revision indeed fixes this.

      I do not want to change the entire build to latest-revision though, so I'd like use the "conflict" tag in ivy.xml:

      <conflict manager="latest-revision"/>
      

      (ideally even with org and module set).

      Alas, this doesn't work. It will use the default conflict manager anyway, ignoring the latest-revision manager altogether.

      org.apache.ivy.plugins.conflict.StrictConflictException: xml-apis#xml-apis;1.4.01 (needed by [xerces#xercesImpl;2.10.0]) conflicts with xml-apis#xml-apis;1.3.04 (needed by [xalan#serializer;2.7.1])
      	at org.apache.ivy.plugins.conflict.LatestCompatibleConflictManager.handleUnsolvableConflict(LatestCompatibleConflictManager.java:292)
      	at org.apache.ivy.plugins.conflict.LatestCompatibleConflictManager.handleIncompatibleConflict(LatestCompatibleConflictManager.java:173)
      	at org.apache.ivy.plugins.conflict.LatestCompatibleConflictManager.resolveConflicts(LatestCompatibleConflictManager.java:114)
      	at org.apache.ivy.core.resolve.ResolveEngine.resolveConflicts(ResolveEngine.java:1018)
      	at org.apache.ivy.core.resolve.ResolveEngine.resolveConflict(ResolveEngine.java:895)
      	at org.apache.ivy.core.resolve.ResolveEngine.resolveConflict(ResolveEngine.java:945)
      	at org.apache.ivy.core.resolve.ResolveEngine.resolveConflict(ResolveEngine.java:833)
      	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:692)
      	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:780)
      	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:703)
      	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:780)
      	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:703)
      	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:780)
      	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:703)
      	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:780)
      	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:703)
      	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:780)
      	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:703)
      	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:768)
      	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:703)
      	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:768)
      	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:703)
      	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:780)
      	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:703)
      	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:575)
      	at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:233)
      	at org.apache.ivyde.eclipse.resolve.IvyResolver.doResolve(IvyResolver.java:230)
      	at org.apache.ivyde.eclipse.resolve.IvyResolver.resolve(IvyResolver.java:137)
      	at org.apache.ivyde.eclipse.resolve.IvyResolveJob$1.run(IvyResolveJob.java:243)
      	at java.lang.Thread.run(Thread.java:662)
      

      Attachments

        1. ivy-conflict-bug.zip
          4 kB
          Carsten Pfeiffer

        Activity

          People

            maartenc Maarten Coene
            carsten.pfeiffer Carsten Pfeiffer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: