2009/2/12 Benson Margulies <[email protected]>

> I am trying to wrap a maven artifact that depends on spring in a bundle,
> and
> just make it self-contained.
>
> I used pax to make a simple pom for the bundle plugin.
>
> Eclipse throws up all over the results, because it has a giant
> Import-Package list. It includes internal packages from the JVM, things
> that
> are in the wrapped dependencies, you name it.
>
> I have this feeling that I'm missing something awfully simple, but I don't
> know what.
>

there is something missing...

1)  what command did you use to create the pom? (arguments, etc)
2)  what version of the maven-bundle-plugin are you using?
3)  did you modify the pom, and if so what did you change?
     (or paste the full pom + Bnd instructions in your message)
4)  what combination of OS+Java+Maven are you using?

note that if your wrapped dependencies do use non java.* packages
from the JVM (for example com.sun...) then these will automatically
be imported because they are referenced in the bytecode

but from your brief description it sounds like you have an excessive
wildcard somewhere in your Private-Package or Export-Package
and that's pulling the entire classpath into your bundle.

-- 
Cheers, Stuart

Reply via email to