Hi All,

We are having a problem using maven-bundle-plugin to build our bundles,
where it injects a version-range (I think it computes the version range
from the compile-time maven-dependency) to the bundle's Import-Packages.

For eg : when I have specified an Import-Package: org.foo.bar; The plugin
injects a version range like Import-Package: org.foo.bar;version="[1.0.0,
2.0.0)" probably by computing from the compile time dependency version of
the maven artifact exposing org.foo.bar package.

The problem is many of our producer bundles are not exporting their
packages with versions. So when the bundle-plugin computes and injects a
version range to relevant consumer bundle's Import-Package, the resolution
get broken because there is no exporter for that package within the
required version-range.
I know, we should manage versions in Exports/Imports properly but it's not
manageable at the moment with the number of bundles has exceeded 300.

Can I please know how can I explicitly avoid the version-range injected to
Import-Package? Is this feature of computing version-range for Imports
added to maven-bundle-plugin (bnd) in a recent released version?
We are using 2.3.5 version of the bundle-plugin.
If this feature has been added to a recent version of the plugin , can you
please specify an older version of the bundle-plugin that doesn't compute
version ranges for Import-Package?
At the moment our immediate requirement is to stop adding version-ranges
for Import-Package

Appreciate your insight on this.

Thanks,
Dileepa

Reply via email to