felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Meschberger <fmesc...@adobe.com>
Subject Re: omit version in import statement
Date Thu, 01 Dec 2011 15:20:26 GMT

Am 01.12.2011 um 16:11 schrieb Reto Bachmann-Gmür:

> Hello
> How do I get the felix maven bundle plugin to omit the version number
> in the import -package directive even though the dependency exports
> the package with a version number?
> The problem is that I'm compiling against jsr-311 api bundle which
> exposes version number and running against an implementation that
> doesn't provide version number in the export.

You might have expected this, but anyway: The fix is to fix the used bundle not yours ;-)

One solution would be to compile against the same JAR that is also deployed. Another option
might be to fix the version import number to 0.0.0:


Again, I think this will break your bundle over time because it dismisses an important feature
of OSGi.

To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org

View raw message