On 21/09/2007, Richard S. Hall <[EMAIL PROTECTED]> wrote:
>
> José Pacheco wrote:
> > Hello.
> >
> >
> >
> > I'm using the maven bundle plugin in a project and I need to set an
> > activator other them the bundle default one.


by default the bundle-plugin doesn't add a default Bundle-Activator entry
- it only adds one if there is a <Bundle-Activator>...</Bundle-Activator>
entry in the BND instructions in your POM

the deprecated osgi-plugin used to automatically try to detect the
activator,
but this can get complicated and it's better to be explicit and force people
to
name the activator upfront so others looking at the sources know which one
is used.

>
> > Can I do this with the plugin? Is this a feature to be implemented in a
> new
> > version?
>
> I think you just need to manually specify the fully qualified class name
> of the activator. At this point in time, bundleplugin does not try to
> automatically detect the activator at all...at least as far as I know.


correct, see above

if you're using the maven-bundle-plugin and getting a Bundle-Activator entry
then your project POM is probably inheriting BND instructions from another
POM in your project hierarchy.

if adding a <Bundle-Activator>...</Bundle-Activator> as shown in:

   http://cwiki.apache.org/confluence/x/aX

doesn't help, then send me your POM and I'll take a look at what's happening

-> richard
>



-- 
Cheers, Stuart

Reply via email to