You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2016/09/30 11:37:05 UTC

[2/4] qpid-jms git commit: QPIDJMS-164: Provide OSGi metadata for qpid-jms-client

QPIDJMS-164: Provide OSGi metadata for qpid-jms-client

This change adds the maven-bundle-plugin to the parent project and
activates it in the qpid-jms-client project, generating OSGi meta data
for the project.

The Bundle-SymbolicName is overridden to "org.apache.qpid.jms.client".

The DynamicPackage-Import header is set to "*" since the JMS client can
actually create instances from all kind of classes.

Signed-off-by: Jens Reimann <jr...@redhat.com>
(cherry picked from commit 17c972800170163b1cfd42a364daf0a26da63e91)


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/5d93bffd
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/5d93bffd
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/5d93bffd

Branch: refs/heads/0.11.x
Commit: 5d93bffdf929bf4fe61a9de8ca98494d08ac945b
Parents: a6953e1
Author: Jens Reimann <jr...@redhat.com>
Authored: Mon Sep 19 17:30:28 2016 +0200
Committer: Robert Gemmell <ro...@apache.org>
Committed: Fri Sep 30 11:04:36 2016 +0100

----------------------------------------------------------------------
 pom.xml                 |  7 +++++++
 qpid-jms-client/pom.xml | 17 ++++++++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/5d93bffd/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 59bc0e8..a18aad4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,6 +59,7 @@
     <maven-javacc-plugin-version>2.6</maven-javacc-plugin-version>
     <maven-eclipse-plugin-version>2.10</maven-eclipse-plugin-version>
     <maven-idea-plugin-version>2.5</maven-idea-plugin-version>
+    <maven-bundle-plugin-version>3.2.0</maven-bundle-plugin-version>
     <findbugs-maven-plugin-version>3.0.2</findbugs-maven-plugin-version>
     <jacoco-plugin-version>0.7.5.201505241946</jacoco-plugin-version>
 
@@ -214,6 +215,12 @@
           </configuration>
         </plugin>
         <plugin>
+          <groupId>org.apache.felix</groupId>
+          <artifactId>maven-bundle-plugin</artifactId>
+          <version>${maven-bundle-plugin-version}</version>
+          <extensions>true</extensions>
+        </plugin>
+        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-release-plugin</artifactId>
           <configuration>

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/5d93bffd/qpid-jms-client/pom.xml
----------------------------------------------------------------------
diff --git a/qpid-jms-client/pom.xml b/qpid-jms-client/pom.xml
index b68e8e1..ac61452 100644
--- a/qpid-jms-client/pom.xml
+++ b/qpid-jms-client/pom.xml
@@ -24,7 +24,7 @@
   </parent>
 
   <artifactId>qpid-jms-client</artifactId>
-  <packaging>jar</packaging>
+  <packaging>bundle</packaging>
   <name>QpidJMS Client</name>
   <description>The core JMS Client implementation</description>
 
@@ -108,6 +108,21 @@
     </resources>
     <plugins>
       <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <configuration>
+          <instructions>
+            <Bundle-SymbolicName>org.apache.qpid.jms.client</Bundle-SymbolicName>
+            <Export-Package>org.apache.qpid.jms.*</Export-Package>
+            <Import-Package>
+            io.netty.*;version="[4.0.0,4.1.0)",
+            org.apache.qpid.proton.*;version="[0.14.0,0.15.0)",
+            *</Import-Package>
+            <Dynamic-ImportPackage>*</Dynamic-ImportPackage>
+          </instructions>
+        </configuration>
+      </plugin>
+      <plugin>
         <groupId>org.jacoco</groupId>
         <artifactId>jacoco-maven-plugin</artifactId>
         <configuration>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org