[ 
https://issues.apache.org/jira/browse/IGNITE-11486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574860#comment-17574860
 ] 

Maxim Muzafarov commented on IGNITE-11486:
------------------------------------------

Log4j was removed IGNITE-16650
I think the issue can be viewed from a new angle from now on.

> Support Automatic modules for ignite-zookeeper: Migrate to log4j2 to resolve 
> issues with logging packages conflict
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-11486
>                 URL: https://issues.apache.org/jira/browse/IGNITE-11486
>             Project: Ignite
>          Issue Type: Sub-task
>            Reporter: Dmitry Pavlov
>            Priority: Minor
>
> Usage of Ignite Zookeeper module in a modular environment failed
> {noformat}
> error: the unnamed module reads package org.apache.log4j from both 
> slf4j.log4j12 and log4j
> {noformat}
> slf4j version is updated by the build system when Ignite Zookeeper is used.
> {noformat}
> +--- org.slf4j:slf4j-api:1.7.7 -> 1.7.25
>     +--- org.slf4j:slf4j-log4j12:1.7.7 -> 1.7.25
>           +--- org.slf4j:slf4j-api:1.7.25
>           \--- log4j:log4j:1.2.17
> {noformat}
> Probably we should update whole Ignite dependency for Slf4j
> Following combination seems to be compilable in a modular environment
> {code}
>     compile (group: 'org.apache.ignite', name: 'ignite-zookeeper', version: 
> ignVer) {
>         exclude group: "org.slf4j", module: "slf4j-log4j12"
>         exclude group: "log4j", module: "log4j"
>     }
>     compile group: "org.slf4j", name: "slf4j-api", version: "1.7.25"
>     compile group: "org.apache.logging.log4j", name: "log4j-slf4j-impl", 
> version: "2.11.2"
> {code}
> According to https://www.slf4j.org/news.html only 1.8x version is 
> modularized, but this major versions line contains only betas. See also 
> https://logging.apache.org/log4j/2.0/log4j-slf4j-impl/
> See also https://blogs.apache.org/logging/entry/moving_on_to_log4j_2
> Migration quide https://logging.apache.org/log4j/2.x/manual/migration.html



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to