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 2018/12/02 11:59:49 UTC

[sling-org-apache-sling-commons-classloader] 02/02: SLING-8148 Use bnd Maven plugins

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-commons-classloader.git

commit f307caaf90bf0439c73ce1f782e99b69bec33cd0
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Sun Dec 2 12:59:07 2018 +0100

    SLING-8148 Use bnd Maven plugins
---
 bnd.bnd |  8 ++++++++
 pom.xml | 20 ++++++--------------
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/bnd.bnd b/bnd.bnd
new file mode 100644
index 0000000..00e30d3
--- /dev/null
+++ b/bnd.bnd
@@ -0,0 +1,8 @@
+Bundle-Activator: org.apache.sling.commons.classloader.impl.Activator
+
+Provide-Capability:\
+  osgi.service;objectClass=org.apache.sling.commons.classloader.DynamicClassLoaderManager
+
+-removeheaders:\
+  Include-Resource,\
+  Private-Package
diff --git a/pom.xml b/pom.xml
index 1ec8f71..97d5456 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,6 @@
     </parent>
 
     <artifactId>org.apache.sling.commons.classloader</artifactId>
-    <packaging>bundle</packaging>
     <version>1.4.3-SNAPSHOT</version>
 
     <name>Apache Sling Dynamic Class Loader Support</name>
@@ -57,19 +56,12 @@
     <build>
         <plugins>
             <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <Bundle-Activator>
-                            org.apache.sling.commons.classloader.impl.Activator
-                        </Bundle-Activator>
-                        <Provide-Capability>
-                            osgi.service;objectClass=org.apache.sling.commons.classloader.DynamicClassLoaderManager
-                        </Provide-Capability>
-                    </instructions>
-                </configuration>
+                <groupId>biz.aQute.bnd</groupId>
+                <artifactId>bnd-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>biz.aQute.bnd</groupId>
+                <artifactId>bnd-baseline-maven-plugin</artifactId>
             </plugin>
             <plugin>
                 <artifactId>maven-failsafe-plugin</artifactId>