CXF
  1. CXF
  2. CXF-4685

Outdated JAXB dependencies in cxf-bundle-minimal

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Later
    • Affects Version/s: 2.7.0
    • Fix Version/s: Invalid
    • Component/s: JAXB Databinding
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      As of release 2.7.0 cxf-bundle-minimal declares the following JAXB dependencies:

      • jaxb-xjc-2.1.13
      • jaxb-impl-2.1.13 (useless, already comes with jaxb-xjc)

      That is quite a step backward from release 2.6.3:

      • jaxb-xjc-2.2.5
      • jaxb-impl-2.2.5 (useless, already comes with jaxb-xjc)
      • jaxb-api-2.2.6 (useless, already comes with jaxb-impl)

        Activity

        Antoine CHAMBILLE created issue -
        Hide
        Daniel Kulp added a comment -

        The 2.2.x versions of JAXB do not work (fully) on Java6 without requiring the end user to go through extra hoops to endorse the 2.2.x jaxb-api in there JRE. This is not something a majority of our users are willing to do. Thus, until we drop support for Java6, we will keep 2.1.x as the default when building with Java6.

        When building with Java7, we do pull in 2.2.x as Java7 has the reverse problem. 2.7.0 uses 2.2.5, but 2.7.1 will be pulling in the latest 2.2.6.

        Show
        Daniel Kulp added a comment - The 2.2.x versions of JAXB do not work (fully) on Java6 without requiring the end user to go through extra hoops to endorse the 2.2.x jaxb-api in there JRE. This is not something a majority of our users are willing to do. Thus, until we drop support for Java6, we will keep 2.1.x as the default when building with Java6. When building with Java7, we do pull in 2.2.x as Java7 has the reverse problem. 2.7.0 uses 2.2.5, but 2.7.1 will be pulling in the latest 2.2.6.
        Daniel Kulp made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Daniel Kulp [ dkulp ]
        Fix Version/s Invalid [ 12312706 ]
        Resolution Later [ 7 ]
        Hide
        Antoine CHAMBILLE added a comment -

        Thank you for the rapid feedback.

        So since release 2.7.0 cxf-bundle-minimal more or less aligns its JAXB dependencies on those of the JDK6. (While that was not the case in previous release 2.6.3.).

        Alright when we import cxf-bundle-minimal in our (JDK7) maven projects we can exclude the JAXB dependencies and force our own.

        Or is there another cxf bundle that we can depend on in order to inherit from 2.2.x JAXB dependencies?

        Show
        Antoine CHAMBILLE added a comment - Thank you for the rapid feedback. So since release 2.7.0 cxf-bundle-minimal more or less aligns its JAXB dependencies on those of the JDK6. (While that was not the case in previous release 2.6.3.). Alright when we import cxf-bundle-minimal in our (JDK7) maven projects we can exclude the JAXB dependencies and force our own. Or is there another cxf bundle that we can depend on in order to inherit from 2.2.x JAXB dependencies?
        Hide
        Daniel Kulp added a comment -

        In general, I would suggest not depending on the cxf-bundle-minimal at all and depend on the individual modules that you need. You can actually get a much more "minimal" size by doing that.

        In either case, putting explicite dependencies on the versions of JAXB that you need/want in your own pom is enough and is the recommended approach. Maven will use the locally defined versions in preference to the transient versions pulled from CXF.

        Show
        Daniel Kulp added a comment - In general, I would suggest not depending on the cxf-bundle-minimal at all and depend on the individual modules that you need. You can actually get a much more "minimal" size by doing that. In either case, putting explicite dependencies on the versions of JAXB that you need/want in your own pom is enough and is the recommended approach. Maven will use the locally defined versions in preference to the transient versions pulled from CXF.
        Hide
        Antoine CHAMBILLE added a comment -

        Thank you for your answer.

        Show
        Antoine CHAMBILLE added a comment - Thank you for your answer.
        Antoine CHAMBILLE made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        10m 14s 1 Daniel Kulp 07/Dec/12 14:31
        Resolved Resolved Closed Closed
        34m 26s 1 Antoine CHAMBILLE 07/Dec/12 15:06

          People

          • Assignee:
            Daniel Kulp
            Reporter:
            Antoine CHAMBILLE
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development