FWIW… I don’t think that List field should be volatile. SCR doesn’t replace the 
whole List, it calls the add/remove methods. The list itself can (and probably 
should) be final.

Neil

> On 25 Jun 2016, at 16:22, Christian Schneider <[email protected]> wrote:
> 
> I also had problems with the maven-bundle-plugin recently when using
> 
> @Reference
> volatile List<Myclass> myList;
> 
> This should create a dynamic list but did not work in maven-bundle-plugin. 
> After asking on the bndtools user list I got the response that
> it was a bug in an older version of bnd and that maven-bundle-plugin still 
> uses this old version.
> 
> I was able to fix this by switching to the bnd-maven-plugin. So I think the 
> maven-bundle-plugin should be updated to this newest bnd version.
> 
> Maybe you are facing a similar problem.
> 
> Christian
> 
> On 01.06.2016 22:25, Cristiano Gavião wrote:
>> Hi,
>> 
>> I used to use m-b-p version 2.5.4 and the generation of the DS component 
>> xmls was working fine.
>> 
>> But after I moved to version 3.0.1 (also tried with 3.0.0) the xml 
>> generation simply stops to work. also inside eclipse (with m2e).
>> 
>> There are any error message in the building maven console or eclipse 
>> console, but the xmls are simply not there...
>> 
>> I moved back to 2.5.4 again and things back to normal....
>> 
>> I'm using the setup bellow:
>> 
>>                   <plugin>
>>   <groupId>org.apache.felix</groupId>
>>   <artifactId>maven-bundle-plugin</artifactId>
>> <version>${mbp.version}</version>
>>                        <extensions>true</extensions>
>>                        <configuration>
>>   <obrRepository>NONE</obrRepository>
>>                            <instructions>
>>   <Bundle-DocURL>${project.url}</Bundle-DocURL>
>>   <Bundle-Name>${project.name}</Bundle-Name>
>> <Bundle-Version>${bundle.full.version}</Bundle-Version>
>> <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
>>   <_dsannotations>*</_dsannotations>
>>   <_metatypeannotations>*</_metatypeannotations>
>> <Bundle-RequiredExecutionEnvironment>JavaSE-1.8</Bundle-RequiredExecutionEnvironment>
>>   <_snapshot>${osgi-version-qualifier}</_snapshot>
>> <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
>>                            </instructions>
>>                            <supportedProjectTypes>
>>   <supportedProjectType>bundle</supportedProjectType>
>>   <supportedProjectType>jar</supportedProjectType>
>>                            </supportedProjectTypes>
>>                        </configuration>
>>   <executions>
>>                                    <execution>
>>   <id>gen-bundle-manifest</id>
>>                                        <goals>
>>   <goal>manifest</goal>
>>                                        </goals>
>>   <phase>process-classes</phase>
>>                                        <configuration>
>> 
>>                                            <instructions>
>>   <Permissions>all-permissions</Permissions>
>> <Include-Resource>{maven-dependencies},{maven-resources},META-INF/LICENSE=LICENSE.txt</Include-Resource>
>> <_removeheaders>Include-Resource,Private-Package,Ignore-Package</_removeheaders>
>>                                            </instructions>
>>                                        </configuration>
>>                                    </execution>
>>                    </plugin>
>> 
>> anyone have experienced this issue ?
>> 
>> thanks,
>> 
>> Cristiano
>> 
> 
> 
> -- 
> Christian Schneider
> http://www.liquid-reality.de
> 
> Open Source Architect
> http://www.talend.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to