sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject [sling-org-apache-sling-commons-classloader] 02/02: SLING-8148 Use bnd Maven plugins
Date Sun, 02 Dec 2018 11:59:49 GMT
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 <olli@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>


Mime
View raw message