[ 
https://issues.apache.org/jira/browse/SLING-6649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15927582#comment-15927582
 ] 

Carsten Ziegeler commented on SLING-6649:
-----------------------------------------

I would prefer if we avoid this: if a project uses parent 30+ it should use the 
official annotations - if for any reason a project needs to update to parent 30 
but can't use the official annotations then it has to add the missing things to 
it's pom.
If we continue to support the old scr annotations ootb, we just delay the 
migration. And the migration is really not that difficult.

> Enable Felix SCR BndTools plugin
> --------------------------------
>
>                 Key: SLING-6649
>                 URL: https://issues.apache.org/jira/browse/SLING-6649
>             Project: Sling
>          Issue Type: Improvement
>          Components: General
>    Affects Versions: Parent 30
>            Reporter: Oliver Lietz
>            Assignee: Oliver Lietz
>             Fix For: Parent 31
>
>
> The [Felix SCR BndTools 
> plugin|http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-scr-bndtools-use.html]
>  is currently disabled in Sling Parent:
> {noformat}
> [...]
>                             
> <Bundle-RequiredExecutionEnvironment>${sling.bree}</Bundle-RequiredExecutionEnvironment>
>                             <!-- Disable the new ScrPlugin for now -->
>                             
> <_plugin>org.apache.felix.bundleplugin.BlueprintPlugin,aQute.lib.spring.SpringXMLType</_plugin>
>                         </instructions>
> [...]
> {noformat}
> I tried several configurations to restore a working build of 
> {{org.apache.sling.event}} with {{maven-scr-plugin}} *and* 
> {{maven-bundle-plugin}} including testing (missing SCR descriptors) to no 
> avail and finally removed {{maven-scr-plugin}} and enabled 
> {{org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin}} in [r1787036 
> |https://svn.apache.org/r1787036].
> Using Felix SCR BndTools plugin is a quick fix obviously before switching to 
> official OSGi annotations.
> We should enable Felix SCR BndTools plugin to not block modules upgrading to 
> Sling Parent >= 30 (without reconfiguring Maven Bundle Plugin in their own 
> POMs or switching to official OSGi annotations).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to