Details
-
Sub-task
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
-
Docs Required
Description
Usage of Ignite Zookeeper module in a modular environment failed
error: the unnamed module reads package org.apache.log4j from both slf4j.log4j12 and log4j
slf4j version is updated by the build system when Ignite Zookeeper is used.
+--- 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
Probably we should update whole Ignite dependency for Slf4j
Following combination seems to be compilable in a modular environment
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"
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
Attachments
Issue Links
- is related to
-
IGNITE-16650 Exclude ignite-log4j, log4j 1.2.17
- Resolved