commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r618426 - /commons/proper/commons-parent/trunk/pom.xml
Date Mon, 04 Feb 2008 20:31:45 GMT
Author: niallp
Date: Mon Feb  4 12:31:44 2008
New Revision: 618426

URL: http://svn.apache.org/viewvc?rev=618426&view=rev
Log:
COMMONSSITE-23 - add OSGi bundle plugin configuration

See http://felix.apache.org/site/maven-bundle-plugin-bnd.html
See http://wiki.apache.org/commons/CommonsOsgi

Modified:
    commons/proper/commons-parent/trunk/pom.xml

Modified: commons/proper/commons-parent/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?rev=618426&r1=618425&r2=618426&view=diff
==============================================================================
--- commons/proper/commons-parent/trunk/pom.xml (original)
+++ commons/proper/commons-parent/trunk/pom.xml Mon Feb  4 12:31:44 2008
@@ -188,6 +188,12 @@
           <artifactId>maven-antrun-plugin</artifactId>
           <version>1.1</version>
         </plugin>
+        <plugin>
+          <groupId>org.apache.felix</groupId>
+          <artifactId>maven-bundle-plugin</artifactId>
+          <version>1.2.0</version>
+          <inherited>true</inherited>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
@@ -214,6 +220,18 @@
         </configuration>
       </plugin>
       <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <excludeDependencies>true</excludeDependencies>
+          <instructions>
+            <Bundle-SymbolicName>${commons.osgibundle}</Bundle-SymbolicName>
+            <Export-Package>org.apache.commons.*;version=${pom.version}</Export-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+      <plugin>
         <artifactId>maven-idea-plugin</artifactId>
         <configuration>
           <jdkLevel>${maven.compile.source}</jdkLevel>
@@ -455,6 +473,12 @@
     <!-- Default configuration for compiler source and target JVM -->
     <maven.compile.source>1.3</maven.compile.source>
     <maven.compile.target>1.3</maven.compile.target>
+
+    <!-- Commons Component Id -->
+    <commons.componentid>${project.artifactId}</commons.componentid>
+
+    <!-- OSGi Bundle Symbolic Name -->
+    <commons.osgibundle>org.apache.commons.${commons.componentid}</commons.osgibundle>
 
     <!--
       Make the deployment protocol pluggable. This allows to switch to



Mime
View raw message