[
https://issues.apache.org/jira/browse/LOG4J2-2845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ralph Goers resolved LOG4J2-2845.
---------------------------------
Resolution: Invalid
This should be reported as a bug against Ivy.
> Can't install 2.13.3 with Ivy
> -----------------------------
>
> Key: LOG4J2-2845
> URL: https://issues.apache.org/jira/browse/LOG4J2-2845
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.13.3
> Environment: macOS 10.15.4, Java 11 (openjdk-14.0.1.jdk)
> Reporter: Rick Mann
> Priority: Major
>
> 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"/>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)