Why not providing the jaxrs api bundle with the flag dependency=true ? See what I did in aries jaxrs:
https://github.com/apache/aries-jax-rs-whiteboard/blob/master/jax-rs.features/src/main/feature/feature.xml#L26 Regards JB On 15/09/2019 17:30, Steinar Bang wrote: > I'm working on a set of PRs for jackson, to build and attach karaf > feature repositories on the jackson OSGi bundles: > https://github.com/FasterXML/jackson-databind/issues/2434 > > I'm currently working on karaf feature support for > jackson-jaxrs-providers > https://github.com/FasterXML/jackson-jaxrs-providers/issues/115 > > And I have encountered a chicken-and-egg problem: > 1. The rs-api dependency in the top POM is made provided with a comment > that the runtime is expected to provide > > https://github.com/FasterXML/jackson-jaxrs-providers/blob/master/pom.xml#L57 > 2. The jackson-jaxrs-base feature (the feature generated from the first > module) fails to load because the rs-api isn't present > > I have resolved similar conflicts elsewhere by depending on built-in > karaf properties, e.g. the "hibernate" and "transaction-api", > ie. deferred the actual loading of an actual version to be the > responsibility of the karaf istance the jackson feature is used in. > > But I haven't found a built-in feature (either in karaf directly or in > the OPS4J stuff) that loads the jax-rs rs-api bundle. > > Is there a feature for rs-api, and have I missed it? Or isn't there > such a feature? > > I guess the cxf features will load rs-api...? But they will probably > load other stuff I don't want, that would conflict with jersey...? > > Thanks! > > > - Steinar > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com