[
https://issues.apache.org/jira/browse/FELIX-6019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16739243#comment-16739243
]
Oliver Lietz commented on FELIX-6019:
-------------------------------------
This discussion clearly heads into the wrong direction. You guys point on Karaf
and Sling doing things bad which doesn't help to solve the issue at all.
My goal is to provide a good OOTB experience for users new to Sling or Karaf or
both.
They should be able to download Karaf and install some Sling features to play
with by clicking in web console.
The discussion about "effective"-ness was already held by [~achim_nierbeck],
[[email protected]], [~gnt] and [~jbonofre] in KARAF-3520 and I will not
start it again.
I "fixed" already several bundles in Sling by adding capabilities manually for
services which are not registered via DS/SCR and where bnd is unable to
generate the capability headers for.
The last oustanding issue with Sling and Karaf regarding this topic is
obviously an edge case.
As I said, the component OsgiObservationBridge itself is optional but there is
no way to mark it as such. This is a limitation of the OSGi Spec which should
be addressed. Obviously this will take years and I'm looking for a pragmatic
way therefore.
The solution should be least invasive to Sling (not changing an otherwise fine
working implementation) and generic to be usable by others with similar issues.
My initial plan was to just release it at Sling, but as [~kwin] pointed out, it
is very generic and deserves more visibility (and I still think bnd should
support it OOTB without the need for a plugin).
> Provide a bnd plugin to remove header parameters
> ------------------------------------------------
>
> Key: FELIX-6019
> URL: https://issues.apache.org/jira/browse/FELIX-6019
> Project: Felix
> Issue Type: New Feature
> Reporter: Oliver Lietz
> Assignee: Oliver Lietz
> Priority: Major
>
> The plugin removes parameters from bundle headers.
> See bnd issue [#2429|https://github.com/bndtools/bnd/issues/2429] and
> SLING-8178.
> Example instruction (for bnd file):
> {noformat}
> -plugin:\
> org.apache.felix.bnd.plugins.header.RemoveParametersPlugin;\
>
> 'Require-Capability'='osgi.service;filter:="(objectClass=org.osgi.service.event.EventAdmin)";effective:=active,osgi.service;filter:="(objectClass=org.osgi.service.event.EventHandler)";effective:=active;cardinality:=multiple'
> {noformat}
> Initial source:
> https://svn.apache.org/repos/asf/felix/sandbox/olli/org.apache.felix.bnd.plugins/
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)