Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2845

Can't install 2.13.3 with Ivy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.13.3
    • None
    • None
    • None
    • macOS 10.15.4, Java 11 (openjdk-14.0.1.jdk)

    Description

      This affects 2.13.3, but there's no Jira version for that.

      I'm trying to use Ant & Ivy to build against log4j. I've set up the dependencies as indicated on the website (https://logging.apache.org/log4j/2.x/maven-artifacts.html):

      <dependencies>
        <dependency org="org.apache.logging.log4j" name="log4j-api" rev="2.13.3" />
        <dependency org="org.apache.logging.log4j" name="log4j-core" rev="2.13.3" />
      </dependencies>

      However, those poms (e.g.: https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.13.3/log4j-api-2.13.3.pom) eventually specify

       
      <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-api-java9</artifactId>
        <scope>provided</scope>
        <type>zip</type>
      </dependency>
       
      (and log4j-core-java9), and Ivy tries to download the, but they don't exist in the repos. I'm  not sure why Ivy is trying to download a "provided" artifact, but I'm not super clear on how these work.

      Googling, I find very little, seems like no one else has run into this problem, but I'm not sure how they couldn't, unless no one uses log4j and Ivy together.

      Something is wrong somewhere. Could be my installation, could be the Log4j Ivy instructions, I'm not sure. I couldn't find a mailing list for log4j, so here I am.

      Note that explicitly excluding the module allows compilation to proceed, not sure if I'll be able to run yet: <exclude module="log4j-api-java9"/>

      Attachments

        Activity

          People

            Unassigned Unassigned
            rmann@latencyzero.com Rick Mann
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: