Log4j 2
  1. Log4j 2
  2. LOG4J2-735

logg4j-bom conflicting with spring-frameworkobom

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: None
    • Labels:
      None

      Description

      I have spring-framework-bom included in my pom.xml for long time. Today, when I included log4j-bom into my pom.xml, the whole system broke. On my analysis, I have found that log4j parent pom has included all spring dependencies with 3.2.8 version.
      Hence the pom has imported two version of spring dependendencies 4.0.4 and 3.2.8 and all unwanted dependency conflicts.

      following is debug output on maven build.
      [DEBUG] org.springframework:spring-test:jar:4.0.4.RELEASE:test
      [DEBUG] org.springframework:spring-core:jar:3.2.8.RELEASE:test (version managed from 4.0.4.RELEASE by org.apache.logging.log4j:log4j:2.0)

        Activity

        Poorna Subhash P created issue -
        Hide
        Gary Gregory added a comment -

        Log4j has a dependency on 3.2.8.RELEASE only. What do you suggest we do? No matter which version we pick, applications mixing Spring versions, might cause a conflict.

        Show
        Gary Gregory added a comment - Log4j has a dependency on 3.2.8.RELEASE only. What do you suggest we do? No matter which version we pick, applications mixing Spring versions, might cause a conflict.
        Hide
        Matt Sicker added a comment -

        I think I have a fix for this actually.

        Show
        Matt Sicker added a comment - I think I have a fix for this actually.
        Hide
        Matt Sicker added a comment -

        Fixed in trunk revision 1612986. The log4j-bom module no longer inherits from the log4j pom.

        Show
        Matt Sicker added a comment - Fixed in trunk revision 1612986. The log4j-bom module no longer inherits from the log4j pom.
        Matt Sicker made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Fix Version/s 2.0.1 [ 12327381 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        18h 49m 1 Matt Sicker 24/Jul/14 04:23

          People

          • Assignee:
            Unassigned
            Reporter:
            Poorna Subhash P
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development