You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2019/09/17 16:50:10 UTC

[sling-org-apache-sling-resourceresolver] branch master updated: SLING-8178 Unable to resolve org.apache.sling.resourceresolver due to missing EventHandler

This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resourceresolver.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a610d0  SLING-8178 Unable to resolve org.apache.sling.resourceresolver due to missing EventHandler
8a610d0 is described below

commit 8a610d0b4cd55fa6949b92faf28eb0a64ad938a4
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Tue Sep 17 18:49:29 2019 +0200

    SLING-8178 Unable to resolve org.apache.sling.resourceresolver due to missing EventHandler
    
    Remove requirement on EventHandler
---
 bnd.bnd | 4 ++++
 pom.xml | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/bnd.bnd b/bnd.bnd
index 6e8ad2b..abe9d05 100644
--- a/bnd.bnd
+++ b/bnd.bnd
@@ -12,6 +12,10 @@ Provide-Capability:\
 Require-Capability:\
   osgi.service;filter:="(objectClass=org.osgi.service.event.EventHandler)";effective:=active;resolution:=optional
 
+-plugin:\
+  org.apache.sling.bnd.plugin.headers.parameters.remove.Plugin;\
+    'Require-Capability'='osgi.service;filter:="(objectClass=org.osgi.service.event.EventHandler)";effective:=active;cardinality:=multiple'
+
 -removeheaders:\
   Include-Resource,\
   Private-Package
diff --git a/pom.xml b/pom.xml
index 0b35127..8f8e3ce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -65,6 +65,13 @@
             <plugin>
                 <groupId>biz.aQute.bnd</groupId>
                 <artifactId>bnd-maven-plugin</artifactId>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.apache.sling</groupId>
+                        <artifactId>org.apache.sling.bnd.plugin.headers.parameters.remove</artifactId>
+                        <version>1.0.0</version>
+                    </dependency>
+                </dependencies>
             </plugin>
             <plugin>
                 <groupId>biz.aQute.bnd</groupId>