On 08/08/07, Stefano Lenzi <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I would like to speak about the maven-bundle-plugin.
>
> Q.1 - There is a way to say to the plugin to ignore some packages?
Yes - you can add negative instructions to both Import-Package and
Export-Package, to override the automatic processing, for example:
<Import-Package>!foo.bar, *</Import-Package>
would avoid importing the foo.bar package, even if it was required.
Basically, any directives you can give to BND can be used with the
bundle-plugin - for a good overview of the directives, please read:
http://aqute.biz/Code/Bnd
the thing to remember is the "pull-approach"... the BND tool uses
Export-Package, Private-Package and Include-Resource to decide
the contents of the bundle - it then analyzes the contents to find
referred packages and applies the Import-Package rules.
I.1 - If there is no way to inform the plugin ignore some packages I
> think would be very useful; because if (like in my case) a bundle
> depends on a library that contains "too much code" there is no way to
> avoid to satisfy all the "package requirement" by using the plugin. More
> in general I think would be nice to improve the plugin in order to have
> a class grain level source(binary) code inspection.
>
> Ciao,
> Stefano "Kismet" Lenzi
>
--
Cheers, Stuart