You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stuart McCulloch (JIRA)" <ji...@apache.org> on 2013/06/07 16:18:19 UTC

[jira] [Updated] (FELIX-4067) Old BND used causes problems during annotations processing

     [ https://issues.apache.org/jira/browse/FELIX-4067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch updated FELIX-4067:
------------------------------------

    Fix Version/s: maven-bundle-plugin-2.4.0
    
> Old BND used causes problems during annotations processing
> ----------------------------------------------------------
>
>                 Key: FELIX-4067
>                 URL: https://issues.apache.org/jira/browse/FELIX-4067
>             Project: Felix
>          Issue Type: Wish
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.7
>            Reporter: Stepan Hrbacek
>            Priority: Critical
>             Fix For: maven-bundle-plugin-2.4.0
>
>
> 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?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira