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

Ivy provided handling incorrect, making log4j2 > 2.8.2 unusable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.0
    • None
    • None

    Description

      Hi team

      As detailed and discussed at LOG4J2-2845, ivy will fail to download any log4j dependency with version greater than 2.8.2, including the latest, which at time of writing is already 2.13.3.

      This looks like it is caused by problems in ivy with the "provided" keyword, which is used for log4j's artifacts from 2.8.2 onwards.

      Suggested workarounds also welcome.

      Run from Eclipse with ivy-2.5.0 (20191020104435) and ivyDE 2.2.0.final-201311091524-RELEASE which I believe are the latest versions.

      Example output from my own environment and a minimal example attached. Key error text:

       

      :: resolving dependencies :: bpmqut#SPNDiscoverAB;latest
      {{ confs: [default]}}
      found org.apache.logging.log4j#log4j-api;2.13.3 in maven2
      {{ found org.osgi#org.osgi.core;4.3.1 in maven2}}
      {{ found org.apache.felix#org.apache.felix.framework;5.6.10 in maven2}}

      ...

      ==== maven2: triedhttps://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core-java9/2.13.3/log4j-core-java9-2.13.3.pom-- artifact org.apache.logging.log4j#log4j-core-java9;2.13.3!log4j-core-java9.zip:https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core-java9/2.13.3/log4j-core-java9-2.13.3.zip==== local: tried:::::::::::::::::::::::::::::::::::::::::::::::: UNRESOLVED DEPENDENCIES :::::::::::::::::::::::::::::::::::::::::::::::::: org.apache.logging.log4j#log4j-api-java9;2.13.3: not found:: org.apache.logging.log4j#log4j-core-java9;2.13.3: not found

       

      Attachments

        1. ivysettings.xml
          0.5 kB
          Adam Burke
        2. ivy.xml
          0.5 kB
          Adam Burke
        3. ivyout_20200910.log
          11 kB
          Adam Burke

        Activity

          People

            Unassigned Unassigned
            adamburkegh Adam Burke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: