Hi Pierre, thanks for your answer.

I am not really sure I understand how your suggestion helps with my problem. 
Would you care to expand a little?

-----Original Message-----
From: Pierre Henry Perret [mailto:[email protected]]
Sent: 17 October 2011 11:52
To: [email protected]
Subject: Re: Hot to configure Maven Bundle plug-in for a mixture of OSGi and 
non OSGi dependencies

Hi Rosi,

It recalls me some similar case I had in a project...

I would had the *baz *dependance in the *parent *management section so that it 
is inherited from all *modules.*
*
*
*WDYT ?
*
--
Pierre-Henry Perret
mob2: +33 (0)6 69 52 18 48




2011/10/17 Barbara Rosi-Schwartz <[email protected]>

> Hello.
>
> I am using the Maven Bundle plug-in to OSGi-ify dependencies that we
> have on another team's jars. These jars in turn have their own
> dependencies, some of which I have already OSGi-ified, whereas others
> are third parties ones which I would just like to embed in the generated 
> bundles.
>
> Let's assume that the jar I want to OSGi-ify is artefact foo-bar and
> that it contains a bunch of third party dependencies + a dependency on
> artefact foo-baz, which I have already OSGi-ified.
>
> To this aim I configure my Maven Bundle plug-in as follows:
>
> <configuration>
>  <instructions>
>    <Export-Package>com.foo.bar.*</Export-Package>
>    <Bundle-Version>${parent.version}</Bundle-Version>
>    <Import-Package>com.foo.baz.client</Import-Package>
>
> <Embed-Dependency>!foo-baz,*;scope=compile|runtime</Embed-Dependency>
>  </instructions>
> </configuration>
>
> The generated com.foo.bar's MANIFEST.MF does contain the expected
> Import-Package clause, but it also contains foo-baz.jar in the
> Bundle-ClassPath clause, which is not what I want. I have tried
> several permutation of the <Embed-Dependency> specification, but to no avail.
>
> How do I correctly specify the instructions to achieve my goal?
>
> TIA,
> B.
>
> BARBARA ROSI-SCHWARTZ
> Senior Developer
>
> IG Group|Cannon Bridge House
> 25 Dowgate Hill|London|EC4R ZYA
>
> t: +44(0)20 7573 0208 (Direct)
> t: +44(0)20 7896 0011 (Switchboard)
> w: www.iggroup.com
>
>
> ________________________________
> The information contained in this email is strictly confidential and
> for the use of the addressee only, unless otherwise indicated. If you
> are not the intended recipient, please do not read, copy, use or
> disclose to others this message or any attachment. Please also notify
> the sender by replying to this email or by telephone (+44 (0)20 7896
> 0011) and then delete the email and any copies of it. Opinions,
> conclusions (etc) that do not relate to the official business of this
> company shall be understood as neither given nor endorsed by it. IG
> Group Holdings plc is a company registered in England and Wales under number 
> 01190902. VAT registration number 761 2978 07.
> Registered Office: Cannon Bridge House, 25 Dowgate Hill, London EC4R 2YA.
> Authorised and regulated by the Financial Services Authority. FSA
> Register number 114059.
>

The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise indicated. If you are not the 
intended recipient, please do not read, copy, use or disclose to others this 
message or any attachment. Please also notify the sender by replying to this 
email or by telephone (+44 (0)20 7896 0011) and then delete the email and any 
copies of it. Opinions, conclusions (etc) that do not relate to the official 
business of this company shall be understood as neither given nor endorsed by 
it. IG Group Holdings plc is a company registered in England and Wales under 
number 01190902. VAT registration number 761 2978 07. Registered Office: Cannon 
Bridge House, 25 Dowgate Hill, London EC4R 2YA. Authorised and regulated by the 
Financial Services Authority. FSA Register number 114059.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to