[ 
https://issues.apache.org/jira/browse/IGNITE-11486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitriy Pavlov updated IGNITE-11486:
------------------------------------
    Description: 
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

  was:
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}


> Support Automatic modules for ignite-zookeeper: 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: Dmitriy Pavlov
>            Assignee: Dmitriy Pavlov
>            Priority: Major
>
> 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
(v7.6.3#76005)

Reply via email to