Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4067

Old BND used causes problems during annotations processing

    XMLWordPrintableJSON

Details

    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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            stepan.hrbacek@gmail.com Stepan Hrbacek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: