Using the bundle plugin for maven ( http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html), you can set up what kind of dependency to include into the bundle :
<!-- embed all compile and runtime scope dependencies --> <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency> <!-- embed any dependencies with artifactId junit and scope runtime --> <Embed-Dependency>junit;scope=runtime</Embed-Dependency> <!-- inline all non-pom dependencies, except those with scope runtime --> <Embed-Dependency>*;scope=!runtime;type=!pom;inline=true</Embed-Dependency> <!-- embed all compile and runtime scope dependencies, except those with artifactIds in the given list --> <Embed-Dependency>*;scope=compile|runtime;inline=false;artifactId=!cli|lang|runtime|tidy|jsch</Embed-Dependency> <!-- inline contents of selected folders from all dependencies --> <Embed-Dependency>*;inline=images/**|icons/**</Embed-Dependency> Good luck! Marc-Andre On Tue, Sep 1, 2009 at 3:31 AM, Karl Pauls <[email protected]> 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] > >

