[ https://issues.apache.org/jira/browse/FELIX-6019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16738588#comment-16738588 ]
Raymond Augé commented on FELIX-6019: ------------------------------------- What get's lost here with this whole effective:=active issue is that, when NOT specified, the default "effective"-ness value is "resolve". That means when you use any other value for effective you basically turn OFF said requirement during "normal" resolution. Now what the spec says about the "osgi.service" namespace is that they are not required and shouldn't be set to effective:=resolve. BND folks jumped on an opportunity to provide some deployment assembly feature and coined the custom effectiveness of "active" (which still meets the spec for "osgi.service" namespace not being "resolve") AND enabled it to add its own magic. However this feature was fully under the control of the developer doing the assembly (you could opt-in, default of Not-opted-in). So, by making this a runtime feature Karaf has done something non standard but without giving control to the developer. > 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)