Hi Daniel, Wow, I should really follow the posts on this list more closely. Sorry for the essential duplicate of a question.
Thanks, Per-Erik Svensson On Wed, Sep 11, 2013 at 7:58 PM, Daniel McGreal <[email protected]> wrote: > Hi Per-Erik, > A previous post, by my colleague, prompted this discussion: > http://apache-felix.18485.x6.nabble.com/Specify-packages-that-should-not-be-exported-by-Felix-framework-td5004647.html#a5004657 > Aside from implementing a solution within Felix, the workaround we came up > with was the specify a version of the package such that our bundles import > our supplied one instead of the one provided by the framework. It's worked > out OK so far. > Good luck, Dan. > > On 11 Sep 2013, at 18:53, Per-Erik Svensson wrote: > > > Hi, > > > > I'm trying to start a minimal set-up to run Jersey (JAX-RS) and Jetty in > > Apache Felix. When doing this, I get a uses constraint violation on > > javax.annotation. > > > > None of this is of course Felix concern, but... > > > > I was wondering if there is a quick way to specify the > > "org.osgi.framework.system.packages" (or any other) property to > > *exclude* certain > > packages. What I did was that I ran "inspect c osgi.wiring.package 0" and > > copy/pasted the result (with some find-replace to format it correctly and > > removing javax.annotation) to the system.packages property. This works > > fine. However, it isn't very "future proof". If either felix or java8 > comes > > with a new set of "default" packages, I have to change this property. > > > > So, is there any way to remove only some of the default exported > packages - > > or is this an all-or-none affair? > > > > Regards, > > Per-Erik Svensson > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

