Friday, 15 August 2014

equinox - OSGi - Is it possible to override a bundle's import package version using a fragment? -



equinox - OSGi - Is it possible to override a bundle's import package version using a fragment? -

i have bundle (jersey-server) imports bundle (org.objectweb.asm) resolution of optional , no version specified:

org.objectweb.asm;resolution:=optional

currently, our application deployed apache karaf (using equinox framework), exports new version of bundle (org.objectweb.asm), namely version 4.0. problem attempting solve since jersey-server bundle not specify version bundle wiring 4.0. however, version of jersey-server using (1.12) incompatible version. have 3.1 version of bundle available in container need jersey-server bundle wire to.

i have attempted utilize fragment suit needs, not appear working. don't understand how fragment import-package conflict resolution works in equinox (or felix) know if i'm trying possible. perhaps there way?

no, fragments additive only. i.e. can add together imports host bundles, cannot replace or remove imports of host.

the jersey-server bundle broken , must fixed.

osgi equinox apache-karaf

No comments:

Post a Comment