You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by je...@apache.org on 2019/01/10 16:06:25 UTC

[sling-org-apache-sling-commons-html] 01/02: modifications to support bnd

This is an automated email from the ASF dual-hosted git repository.

jeb pushed a commit to branch BND-TEST
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-html.git

commit c1efa19514dc9c1636debafc92cb820b584d7506
Author: JE Bailey <ja...@sas.com>
AuthorDate: Thu Jan 10 10:43:41 2019 -0500

    modifications to support bnd
---
 bnd.bnd | 18 ++++++++++++++++++
 pom.xml | 26 ++++++--------------------
 2 files changed, 24 insertions(+), 20 deletions(-)

diff --git a/bnd.bnd b/bnd.bnd
new file mode 100644
index 0000000..ff0b752
--- /dev/null
+++ b/bnd.bnd
@@ -0,0 +1,18 @@
+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
+
+-exportcontents: ${packages;VERSIONED}
+
+-includeresource:\
+  @tagsoup-*.jar!/org/ccil/cowan/tagsoup/*
+
+-removeheaders:\
+  Include-Resource,\
+  Private-Package
diff --git a/pom.xml b/pom.xml
index 0a27aef..16dfc05 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,27 +46,18 @@
         <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-html.git</connection>
         <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-html.git</developerConnection>
         <url>https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-commons-html.git</url>
-        <tag>HEAD</tag>
-    </scm>
+      <tag>HEAD</tag>
+  </scm>
 
     <build>
         <plugins>
             <plugin>
-                <groupId>org.apache.sling</groupId>
-                <artifactId>maven-sling-plugin</artifactId>
+                <groupId>biz.aQute.bnd</groupId>
+                <artifactId>bnd-maven-plugin</artifactId>
             </plugin>
             <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <!-- Embed tagsoup -->
-                        <Embed-Dependency>
-                            *;scope=compile;inline=true
-                        </Embed-Dependency>
-                    </instructions>
-                </configuration>
+                <groupId>biz.aQute.bnd</groupId>
+                <artifactId>bnd-baseline-maven-plugin</artifactId>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
@@ -92,9 +83,6 @@
             <plugin>
                 <groupId>org.apache.servicemix.tooling</groupId>
                 <artifactId>depends-maven-plugin</artifactId>
-                <configuration>
-                    <outputFile>${project.build.directory}/test-classes/META-INF/maven/dependencies.properties</outputFile>
-                </configuration>
             </plugin>
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
@@ -228,6 +216,4 @@
             <scope>test</scope>
         </dependency>
     </dependencies>
-
-    <packaging>bundle</packaging>
 </project>