On 30/03/2008, Sebastien ARBOGAST <[EMAIL PROTECTED]> wrote:
>
> I have a bundle with some service interfaces in com.mycompany.myapp and
> their implementations in com.mycompany.myapp.implSince I only want to
> export
> interfaces and not implementations, I add the following directive to
> maven-bundle-plugin configuration:
> <Export-Package>com.mycompany.myapp</Export-Package>
>
> But then the problem is that implementations are not in the resulting
> bundle. And if I a "*" to the package, implementation classes are in the
> bundle but the impl package is exported in the manifest.
> How is it that the Export-Package directive also controls which classes
> are
> bundled?


this is how the Bnd tool works, see here for a detailed description:

   http://aqute.biz/Code/Bnd

it uses Export-Package, Private-Package and Include-Resource to
pull classes and resources into your bundle - this makes Bnd very
flexible, as you can easily "slice" a classpath into several bundles.

FYI I'm using version 1.4.0 of maven-bundle-plugin.
>
>
> --
> Sébastien Arbogast
>
> http://sebastien-arbogast.com
>



-- 
Cheers, Stuart

Reply via email to