felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch" <stuart.mccull...@jayway.net>
Subject Re: [Doubt] maven bundle plugin
Date Fri, 21 Sep 2007 09:40:12 GMT
On 21/09/2007, José Pacheco <jose-c-pacheco@criticalsoftware.com> wrote:
>
> Maven bundle plugin still asking for the activator in the class path, the
> "provided" scope seems to not have resolved the problem.
>
> The error is:
> [ERROR] Error building bundle
> com.criticalsoftware.example:example-module:bundle:1.0.0-SNAPSHOT :
> Bundle-Activator not found on the bundle class path or imports:
> org.ow2.easybeans.osgi.ejbjar.Activator
> org.apache.maven.plugin.MojoFailureException: Found errors, see log


Hi José, can you try adding this instruction:

   <Import-Package>org.ow2.easybeans.osgi.ejbjar,*</Import-Package>

ie. explicitly import the package containing your Activator - it may well be
that this package is not referenced elsewhere, so isn't being found by the
Bnd code analyzer (make sure you keep the wildcard in import-package)

-- 
Cheers, Stuart

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message