Hello,

thank you for your answers - no problem with waiting...
I have just downloaded chapter one of the upcoming book - I think its really 
good
And informative - I will buy a copy for sure..

Thanx again,

Michael


-----Ursprüngliche Nachricht-----
Von: Stuart McCulloch [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 02. Dezember 2008 16:16
An: [email protected]
Betreff: Re: bnd version policy for import-package

2008/12/2 Hampel, Michael <[EMAIL PROTECTED]>

> Hello,
>
> I have a question about how bnd determines the version for an
> import-package.
> (I am using the maven bundle plugin version 1.4.3).
> I have the following behaviour:
>
> If I export packages with the version 1.0.25 then bnd imports these
> packages with version 1.0.
> (I think this is conform to the documentation - "though the micro part
> and the qualifier are dropped")
>
> If I export packages with the version 1.0.25.0 or 1.0.25.SNAPSHOT then
> bnd imports these packages with
> version  1.0.25.0 or 1.0.25.SNAPSHOT.
> (which I think is not conform to the documentation?)
>
> As in the end I want to have import version 1.0.25 I tried out the
> -versionpolicy option like this
> (in the maven bundle plugin)
> <Import-Package>*;-versionpolicy:[EMAIL PROTECTED]</Import-Package>
>
> but this did not work either (still get version 1.0) - but maybe I am
> using this policy in the wrong way.
>
> Can someone please advise how I get version 1.0.25 for imported
> packages?
>

versionpolicy isn't supported in the 1.4.3 bundleplugin - and unfortunately
the version of Bnd where this is supported is not compatible with 1.4.3, so
you can't simply update the dependency in the <build> section :(

I'm working on updating the plugin, but it's been slow because things keep
cropping up in other projects (for example I was up most of last night
fixing
bugs and preparing our book for the 1/3 review) - so please be patient :)

Thanx in advance for any help,
>
> Michael
>

-- 
Cheers, Stuart

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to