[
https://issues.apache.org/jira/browse/SLING-6649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934160#comment-15934160
]
Carsten Ziegeler commented on SLING-6649:
-----------------------------------------
[~olli] Currently if a package has a @Version annotation and is not in the list
of private packages, it will be exported (R7 finally will have a solution for
this).
The provide directive is a predecessor of the ProviderType annotation, so if
this one (ProviderType/ConsumerType) is used correctly, everything should be
fine.
I don't think we need to keep the Blueprint, Spring plugins - I think we had
them there for compatibility as these are the default plugins.
> 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)