SLING-8178 Unable to resolve org.apache.sling.resourceresolver due to missing EventHandler
Remove requirement on EventHandler
diff --git a/bnd.bnd b/bnd.bnd
index 6e8ad2b..abe9d05 100644
--- a/bnd.bnd
+++ b/bnd.bnd
@@ -12,6 +12,10 @@
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>