Author: rombert Date: Tue Oct 6 20:49:02 2015 New Revision: 1707138 URL: http://svn.apache.org/viewvc?rev=1707138&view=rev Log: SLING-5105 - Do not export org.apache.sling.oak.server
Use an negation on the Export-Package directive instead of the Private-Package directive. As far as I can tell, the maven-bundle-plugin has a default Export-Package value which matches the org.apache.sling.oak.server package. Given that bnd, when encountering a package listed in both Private-Package and Export-Package, prefers the Export-Package directive makes it impossible to exclude the package using Private-Package. Modified: sling/trunk/bundles/jcr/oak-server/pom.xml Modified: sling/trunk/bundles/jcr/oak-server/pom.xml URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/oak-server/pom.xml?rev=1707138&r1=1707137&r2=1707138&view=diff ============================================================================== --- sling/trunk/bundles/jcr/oak-server/pom.xml (original) +++ sling/trunk/bundles/jcr/oak-server/pom.xml Tue Oct 6 20:49:02 2015 @@ -56,6 +56,7 @@ <extensions>true</extensions> <configuration> <instructions> + <Export-Package>!*</Export-Package> <Import-Package> org.apache.jackrabbit.test;resolution:=optional, com.mongodb;resolution:=optional, @@ -67,10 +68,6 @@ <!-- TODO embedding shouldn't be needed but avoids classloading issues --> <Embed-Dependency>oak-jcr</Embed-Dependency> - - <Private-Package> - org.apache.sling.oak.server.* - </Private-Package> </instructions> </configuration> </plugin>