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

1qazXsw2~! updated FELIX-4067:
------------------------------

    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?

  was:
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. May be 
newest BND 2.0.0 already solved the 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?

    
> 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: 1qazXsw2~!
>            Priority: Critical
>
> 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

Reply via email to