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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Component/s: Core
    • Labels:
      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

          Activity

            People

            • Assignee:
              garydgregory Gary Gregory
              Reporter:
              lhochet Ludovic HOCHET
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: