title: OSGi - Is it possible to override a bundle's import package version using a fragment?
body: <p>I have a bundle (jersey-server) that imports a package (<code>org.objectweb.asm</code>) with a resolution of optional and no version specified:</p>
  
  <pre><code>org.objectweb.asm;resolution:=optional
  </code></pre>
  
  <p>Currently, our application is deployed to Apache Karaf (using the Equinox framework), which exports a new version of this package (<code>org.objectweb.asm</code>), namely version 4.0.  The problem I am attempting to solve is that since the jersey-server bundle does not specify a version for the package it is wiring to 4.0.  However, the version of jersey-server I am using (1.12) is incompatible with this version.  I have a 3.1 version of the package available in the container that I need the jersey-server bundle to wire to.</p>
  
  <p>I have attempted to use a fragment to suit my needs, but it does not appear to be working.  I don't fully understand how fragment import-package conflict resolution works in Equinox (or Felix) to know if what I'm trying to do is even possible.  Perhaps there is another way?</p>