users@jersey.java.net

[Jersey] OSGi Export-Package: javax.ws.rs

From: Ryan Stewart <rds6235_at_gmail.com>
Date: Fri, 27 May 2011 15:48:55 -0500

Why is it that jersey-core includes the javax.ws.rs.* packages and exports
them as, for example, javax.ws.rs;version="0.0.0"? Whether using OSGi or
not, isn't it more correct to indicate that jersey-core has a transitive
dependency on jsr311-api-1.1.1? And specifically in OSGi, I've been
encountering trouble trying to use other bundles that specifically import
javax.ws.rs;version="1.1.1". Since everything in jersey explicitly depends
on this bogus "0.0.0" version, there's no way to resolve the jersey bundles
in the same container as the others in a way that they'll play together
nicely. Can we remove javax.ws.rs.* from the jersey jars please?