Add Import-Package org.osgi.service.repository;resolution:=mandatory as otherwise its made optional for some reason.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1592467 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundlerepository/pom.xml b/bundlerepository/pom.xml
index 618c78f..7aefd66 100644
--- a/bundlerepository/pom.xml
+++ b/bundlerepository/pom.xml
@@ -123,7 +123,16 @@
org.apache.felix.bundlerepository.impl.*,
org.apache.felix.utils.*
</Private-Package>
- <Import-Package>!javax.xml.parsers,!org.xml.sax,org.osgi.service.log;resolution:=optional,org.osgi.service.obr;resolution:=optional,javax.xml.stream;resolution:=optional,*</Import-Package>
+ <!-- The org.osgi.service.repository;resolution:=mandatory seems strange below, but otherwise the maven-bundle-plugin
+ will make that import optional, which we don't want... -->
+ <Import-Package>
+ !javax.xml.parsers,
+ !org.xml.sax,
+ org.osgi.service.repository;resolution:=mandatory,
+ org.osgi.service.log;resolution:=optional,
+ org.osgi.service.obr;resolution:=optional,
+ javax.xml.stream;resolution:=optional,
+ *</Import-Package>
<DynamicImport-Package>org.apache.felix.shell</DynamicImport-Package>
<Bundle-Activator>${project.artifactId}.impl.Activator</Bundle-Activator>
<Bundle-DocURL>http://felix.apache.org/site/apache-felix-osgi-bundle-repository.html</Bundle-DocURL>