Hi Stephan, About the version range, [3.4,3.4] includes 3.4.5, so it's normal that it wires. [3.4.4,3.4.4] will exclude 3.4.5, but it will include 3.4.4.x. filter:="(&(osgi.wiring.package=org.apache.cxf)(version>=3.4.0)(version<=3.4.0))" will actually exclude 3.4.5 (but again, it could include 3.4.0.x).
About CXF import range, I already removed <repository/>, so, it would make sense to use a "flexible" range, like [3.4,3.5). Regards JB On Tue, Apr 12, 2022 at 9:39 AM Siano, Stephan <stephan.si...@sap.com.invalid> wrote: > > Hi, > > I am trying to install camel-cxf 3.14.2 together with CXF 3.4.5 on a custom > distribution of Karaf 4.3.6, but the camel-cxf and camel-cxf-transport > bundles do not wire. > > The problem is that the CXF packages are imported by the camel-cxf bundles > with an import range of [3.4,3.4] which does not wire with the bundles CXF > 3.4.5 exports (Karaf translates the import range into > filter:="(&(osgi.wiring.package=org.apache.cxf)(version>=3.4.0)(version<=3.4.0))", > which would only match version 3.4.0, but not 3.4.5). > > The issue was introduced with > https://issues.apache.org/jira/browse/CAMEL-17137 and I think this was > supposed to restrict the import range to any 3.4 version (but for my gut > feeling the filter for that would have to be “[3.4,3.5)”). Rastislav Papp has > added the same issue to the incident, but I am not sure if that was noted by > someone. > > Do determine what to do as a follow up I have a few questions: > To the karaf experts: > Is the assumption correct that an import range of [3.4,3.4] should not wire > to a package with version 3.4.5? > Is there a setting I didn’t set in my custom distribution that might make > this work? > > To the camel experts: > Wouldn’t it be better to change the CXF import range to [3.4,3.5) or was that > avoided on purpose? > With that change the wiring issues are resolved. > > Best regards > Stephan