Details
-
Wish
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
maven-bundle-plugin-2.3.7
-
None
Description
I use following plugin configuration in Maven to create OSGi bundle that makes a use of annotations:
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Activator>net.atos.dirx.access.sample.osgi.datasource.caller.module.ModuleController</Bundle-Activator>
<Private-Package>
net.atos.dirx.access.sample.osgi.datasource.caller.module,
net.atos.dirx.access.sample.osgi.datasource.caller.service
</Private-Package>
<_dsannotations>*</_dsannotations>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
When running mvn package, I get following error:
[ERROR] Bundle net.atos.dirx.access.sample.osgi.datasource.caller:dirx.access.sample.osgi.datasource.caller:bundle:0.0.1-SNAPSHOT : Activate method for net.atos.dirx.access.sample.osgi.datasource.caller.module.BundleIdentifierSourceFactory does not have an acceptable prototype, only Map, ComponentContext, or BundleContext is allowed. Found: ()Ljava/lang/String;
The issue is in BND 1.50.0 that is used by the maven-bundle-plugin. When running BND 2.0.0 from command line, there is no issue.
When is it please expected a release of new maven-bundle-plugin that uses BND 2.0.0? Is there a workaround for this issue in the current version 2.3.7?