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

Reply via email to