You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2016/02/24 22:19:04 UTC

qpid-proton git commit: PROTON-1147 Use the maven-bundle-plugin to embed osgi metadata in the module manifest.

Repository: qpid-proton
Updated Branches:
  refs/heads/master 802fb209b -> ce2dfd501


PROTON-1147 Use the maven-bundle-plugin to embed osgi metadata in the
module manifest.  

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

Branch: refs/heads/master
Commit: ce2dfd5010b3dba21b95be59f6ed0439ee54611e
Parents: 802fb20
Author: Timothy Bish <ta...@gmail.com>
Authored: Wed Feb 24 16:18:20 2016 -0500
Committer: Timothy Bish <ta...@gmail.com>
Committed: Wed Feb 24 16:18:48 2016 -0500

----------------------------------------------------------------------
 pom.xml          | 52 +++++++++++++++++++++++++++++++++++++++++++++++----
 proton-j/pom.xml | 23 +++++++++++++++++++++--
 2 files changed, 69 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/ce2dfd50/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 075040b..7bacd41 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,6 +31,11 @@
 
   <properties>
     <junit-version>4.12</junit-version>
+    <mockito-version>1.10.19</mockito-version>
+    <doxia-module-version>1.3</doxia-module-version>
+
+    <maven-source-plugin-version>2.2.1</maven-source-plugin-version>
+    <maven-bundle-plugin-version>2.5.4</maven-bundle-plugin-version>
   </properties>
 
   <distributionManagement>
@@ -54,7 +59,6 @@
           <showWarnings>true</showWarnings>
         </configuration>
       </plugin>
-
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
@@ -62,7 +66,7 @@
           <dependency>
             <groupId>org.apache.maven.doxia</groupId>
             <artifactId>doxia-module-markdown</artifactId>
-            <version>1.3</version>
+            <version>${doxia-module-version}</version>
           </dependency>
         </dependencies>
         <configuration>
@@ -71,7 +75,47 @@
           <siteDirectory>docs</siteDirectory>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>${maven-bundle-plugin-version}</version>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <Export-Package>${project.groupId}.proton.*</Export-Package>
+          </instructions>
+        </configuration>
+      </plugin>
     </plugins>
+    <pluginManagement>
+      <plugins>
+        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
+        <plugin>
+          <groupId>org.eclipse.m2e</groupId>
+          <artifactId>lifecycle-mapping</artifactId>
+          <version>1.0.0</version>
+          <configuration>
+            <lifecycleMappingMetadata>
+              <pluginExecutions>
+                <pluginExecution>
+                  <pluginExecutionFilter>
+                    <groupId>org.apache.felix</groupId>
+                    <artifactId>maven-bundle-plugin</artifactId>
+                    <versionRange>[2.4.0,)</versionRange>
+                    <goals>
+                      <goal>manifest</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore></ignore>
+                  </action>
+                </pluginExecution>
+              </pluginExecutions>
+            </lifecycleMappingMetadata>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
   </build>
 
   <dependencies>
@@ -84,7 +128,7 @@
     <dependency>
       <groupId>org.mockito</groupId>
       <artifactId>mockito-core</artifactId>
-      <version>1.9.5</version>
+      <version>${mockito-version}</version>
       <scope>test</scope>
     </dependency>
   </dependencies>
@@ -118,7 +162,7 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-source-plugin</artifactId>
-            <version>2.2.1</version>
+            <version>${maven-source-plugin-version}</version>
             <executions>
               <execution>
                 <id>attach-sources</id>

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/ce2dfd50/proton-j/pom.xml
----------------------------------------------------------------------
diff --git a/proton-j/pom.xml b/proton-j/pom.xml
index 26c2e2f..062ea77 100644
--- a/proton-j/pom.xml
+++ b/proton-j/pom.xml
@@ -6,9 +6,9 @@
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
-  
+
   http://www.apache.org/licenses/LICENSE-2.0
-  
+
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -25,8 +25,27 @@
 
   <artifactId>proton-j</artifactId>
   <name>proton-j</name>
+  <packaging>bundle</packaging>
 
   <scm>
     <url>http://svn.apache.org/viewvc/qpid/proton/</url>
   </scm>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>${maven-bundle-plugin-version}</version>
+        <configuration>
+          <instructions>
+            <Import-Package>
+              javax.net.ssl*;resolution:=optional,*
+            </Import-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>


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