You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Adam Burke (Jira)" <ji...@apache.org> on 2020/09/10 01:32:00 UTC
[jira] [Commented] (LOG4J2-2845) Can't install 2.13.3 with Ivy
[ https://issues.apache.org/jira/browse/LOG4J2-2845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17193286#comment-17193286 ]
Adam Burke commented on LOG4J2-2845:
------------------------------------
I have just encountered this as well. Testing against a few versions, it appears from log4j2.8.2 onwards using ivy 2.5.0.
I have raised IVY-1619 accordingly, but it seems it may not be a very active project.
> 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)