If the range is for a specific known package prefix, you could always use a
wildcard:
<Import-Package>com.foo*;version="[1.0,2.0)", *</Import-Package>
then it would only be in the final manifest if a package under com.foo... was
imported
Otherwise for general treatment of ranges, look at bnd's version policies:
http://www.aqute.biz/Bnd/Versioning
If this still doesn't meet your needs then an example project would be useful.
On 11 Apr 2013, at 19:37, Reto Bachmann-Gmür wrote:
> Maybe we should create a request for enhancement for this?
>
> Today, I was missing this feature again.
>
> On Thu, Feb 14, 2013 at 5:59 PM, Andrei Pozolotin <
> [email protected]> wrote:
>
>> I also would like to know the solution.
>>
>>
>> -------- Original Message --------
>> Subject: Maven-bundle-plugin: specify import version range only for the
>> case the package is needed
>> From: Reto Bachmann-Gmür <[email protected]> <[email protected]>
>> To: users <[email protected]> <[email protected]>
>> Date: Thu 14 Feb 2013 04:58:26 AM CST
>>
>> Hello
>>
>> Many bundles in my project but not all import a specific package. Whenever
>> this package is imported I have to specify the version range in the
>> Import-Package directive as it would otherwise be too restrictive. I would
>> like to specify this version range in the parent rather than in every
>> bundle-artifact individually. Obviously the import should only show up id
>> the package is indeed needed in that bundle project. Is this possible?
>>
>> Cheers,
>> Reto
>>
>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]