Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-11461 Automatic modules support for Apache Ignite: find and resolve packages conflicts
  3. IGNITE-11486

Support Automatic modules for ignite-zookeeper: Migrate to log4j2 to resolve issues with logging packages conflict

    XMLWordPrintableJSON

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

          Activity

            People

              Unassigned Unassigned
              dpavlov Dmitry Pavlov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: