Try this: Set the scope of the transitive dependencies to compile. On Tue, Sep 14, 2010 at 11:25 AM, [email protected] <[email protected]> wrote: > Hello! > > I have a bundle, which depends from jar, which included into current bundle > using Embed-Dependency attribute with all dependencies. > > But jar's pom.xml contains several dependencies with "optional=true". As a > result, packages from those libraries placed into "Import-Package" > attribute. > > How I can exclude optional transitive dependencies from including into > "Import-Package" attribute? > > P.S. I've tried > <Embed-Dependency>*;scope=compile|runtime;optional=false</Embed-Dependency> > <Embed-Transitive>true</Embed-Transitive> > but it didn't help. > > Thanks for your help. > > --------------------------------------------------------------------- > 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]

