My similar problem was resolved with:

Setting packaging to bundle.
Define dependencies as usual.
Only use the maven-bundle-plugin
But adding these in the configuration :

<Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
<_exportcontents>xyz</_exportcontents>

I had a problem excluding transitive dependencies, which was "resolved" by 
adding
<Import-Package>*;resolution:=optional</Import-Package>
in my case.

Regards,
/Niels
 

-----Original Message-----
From: Ben Coughlan [mailto:[email protected]] 
Sent: 04 September 2009 14:49
To: [email protected]
Subject: Re: Maven Bundle Plugin - Transitive dependencies from bundles

It has the bundleall goal (which I haven't used successfully yet).   
I'm more interested in having the dependency plugin resolve the  
transitive dependencies of bundles.

Ben

On 01/09/2009, at 5:31 PM, Karl Pauls wrote:

> I believe the maven-bundle-pluing has support for that. Have  a look
> at the documentation - there was a feature for downloading/embedding
> all dependencies...
>
> regards,
>
> Karl
>
> On Tue, Sep 1, 2009 at 6:38 AM, Ben Coughlan<[email protected]>  
> wrote:
>> Hello,
>>
>> I'm working on a maven pom that assembles all my bundles and  
>> libraries into
>> an application.
>>
>> I'm using the maven-dependency-plugin to copy the transitive  
>> dependencies of
>> my application bundles.  This works fine if I leave the <type> as a  
>> jar, but
>> I need to differentiate jars from osgi-compliant bundles, so I  
>> usually set
>> the type to bundle.
>>
>> Unfortunately the dependency plugin doesn't grab the transitive  
>> dependencies
>> of bundles.
>>
>> Does anyone have any suggestions?
>>
>> Cheers,
>> Ben Coughlan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
> -- 
> Karl Pauls
> [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>


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

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.

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

Reply via email to