Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1723

Unwanted transitive dependency on geronimo-jms_1.1_spec causes OSGi tests to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7
    • 2.8
    • Core
    • None

    Description

      The change from maven-bundle-plugin:2.5.3 to 3.2.0, as part of the study of LOG4J2-1637, caused the dependency on package javax.jms to become non optional which made the OSGi tests to fails. Post LOG4J2-1637, LOG4J2-1664 was created to improve the OSGi tests and this problem was "offloaded" to it. Since this problem does not originate in the OSGi tests, I'm creating a new issue for it.

      Since this appeared with a change of maven-bundle-plugin, I had a look into how it processed optional dependencies since it was apparently not handling the optional declaration of jboss-jms-api_1.1_spec. As it happened it did add the javax.jms package from that dependency to the list of optional packages, but at the same time it was adding the same package to the list of required packages. Further checks showed that it was picking up the required package from geronimo-jms_1.1_spec which is a transitive dependency of activemq-broker (shown with dependency:tree). Since the JMS specifications are already included with jboss-jms-api_1.1_spec, the geronimo-jms_1.1_spec should be excluded.

      Attachments

        1. patch-log4j2-1723.diff
          0.6 kB
          Ludovic HOCHET

        Activity

          People

            ggregory Gary D. Gregory
            lhochet Ludovic HOCHET
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: