SLING-7417 Use bnd Maven plugins
authorOliver Lietz <olli@apache.org>
Sun, 21 Jan 2018 08:18:15 +0000 (09:18 +0100)
committerOliver Lietz <olli@apache.org>
Sun, 21 Jan 2018 08:18:15 +0000 (09:18 +0100)
bnd.bnd [new file with mode: 0644]
pom.xml

diff --git a/bnd.bnd b/bnd.bnd
new file mode 100644 (file)
index 0000000..9806ee8
--- /dev/null
+++ b/bnd.bnd
@@ -0,0 +1,19 @@
+Bundle-Category: sling
+
+Bundle-Description: ${project.description}
+
+Bundle-DocURL: https://sling.apache.org
+
+Bundle-License: Apache License, Version 2.0
+
+Bundle-Vendor: The Apache Software Foundation
+
+-baseline: *
+
+-exportcontents: ${packages;VERSIONED}
+
+-removeheaders:\
+  Embed-Dependency,\
+  Embed-Transitive,\
+  Include-Resource,\
+  Private-Package
diff --git a/pom.xml b/pom.xml
index e78da8c..0bbad6d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,6 @@
 
   <artifactId>org.apache.sling.commons.messaging</artifactId>
   <version>0.0.1-SNAPSHOT</version>
-  <packaging>bundle</packaging>
 
   <name>Apache Sling Commons Messaging</name>
   <description>Apache Sling Commons Messaging</description>
   <build>
     <plugins>
       <plugin>
-        <groupId>org.apache.felix</groupId>
-        <artifactId>maven-bundle-plugin</artifactId>
-        <extensions>true</extensions>
+        <groupId>biz.aQute.bnd</groupId>
+        <artifactId>bnd-maven-plugin</artifactId>
       </plugin>
+      <!-- enable baseline after initial release -->
+      <!--
+      <plugin>
+        <groupId>biz.aQute.bnd</groupId>
+        <artifactId>bnd-baseline-maven-plugin</artifactId>
+      </plugin>
+      -->
     </plugins>
   </build>