You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2008/07/04 13:11:46 UTC
svn commit: r674006 - in /synapse/trunk/java: modules/core/pom.xml
modules/extensions/pom.xml modules/handler/pom.xml modules/mar/pom.xml
modules/samples/pom.xml modules/transports/pom.xml modules/war/pom.xml
modules/xar-maven-plugin/pom.xml pom.xml
Author: ruwan
Date: Fri Jul 4 04:11:45 2008
New Revision: 674006
URL: http://svn.apache.org/viewvc?rev=674006&view=rev
Log:
Making the jar files of synapse to OSGi bundles
Modified:
synapse/trunk/java/modules/core/pom.xml
synapse/trunk/java/modules/extensions/pom.xml
synapse/trunk/java/modules/handler/pom.xml
synapse/trunk/java/modules/mar/pom.xml
synapse/trunk/java/modules/samples/pom.xml
synapse/trunk/java/modules/transports/pom.xml
synapse/trunk/java/modules/war/pom.xml
synapse/trunk/java/modules/xar-maven-plugin/pom.xml
synapse/trunk/java/pom.xml
Modified: synapse/trunk/java/modules/core/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/pom.xml?rev=674006&r1=674005&r2=674006&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/pom.xml (original)
+++ synapse/trunk/java/modules/core/pom.xml Fri Jul 4 04:11:45 2008
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.synapse</groupId>
<artifactId>Apache-Synapse</artifactId>
- <version>SNAPSHOT</version>
+ <version>1.3-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -35,7 +35,8 @@
<name>Apache Synapse - Core</name>
<description>Apache Synapse - Core</description>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
+ <url>http://synapse.apache.org</url>
<build>
<plugins>
@@ -155,6 +156,27 @@
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.0</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-Version>${pom.version}</Bundle-Version>
+ <Bundle-Name>${pom.artifactId}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Description>${pom.description}</Bundle-Description>
+ <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Export-Package>
+ !org.apache.synapse.transport.*,
+ !org.apache.synapse.format.*,
+ org.apache.synapse.*;-split-package:=merge-last,
+ </Export-Package>
+ </instructions>
+ </configuration>
+ </plugin>
</plugins>
<resources>
<resource>
Modified: synapse/trunk/java/modules/extensions/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/extensions/pom.xml?rev=674006&r1=674005&r2=674006&view=diff
==============================================================================
--- synapse/trunk/java/modules/extensions/pom.xml (original)
+++ synapse/trunk/java/modules/extensions/pom.xml Fri Jul 4 04:11:45 2008
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.synapse</groupId>
<artifactId>Apache-Synapse</artifactId>
- <version>SNAPSHOT</version>
+ <version>1.3-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -35,7 +35,7 @@
<name>Apache Synapse - Extensions</name>
<description>Apache Synapse - Extensions</description>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
<build>
<plugins>
@@ -46,6 +46,36 @@
<version>2.2</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.0</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-Version>${pom.version}</Bundle-Version>
+ <Bundle-Name>${pom.artifactId}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Description>${pom.description}</Bundle-Description>
+ <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Export-Package>
+ org.apache.synapse.format.hessian.*;-split-package:=merge-last,
+ org.apache.synapse.format.syslog.*;-split-package:=merge-last,
+ org.apache.synapse.mediators.bsf.*;-split-package:=merge-last,
+ org.apache.synapse.mediators.spring.*;-split-package:=merge-last,
+ org.apache.synapse.mediators.throttle.*;-split-package:=merge-last,
+ org.apache.synapse.mediators.xquery.*;-split-package:=merge-last,
+ </Export-Package>
+ <Import-Package>
+ javax.servlet; version=2.4.0,
+ javax.servlet.http; version=2.4.0,
+ *;resolution:=optional
+ </Import-Package>
+ <DynamicImport-Package>*</DynamicImport-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
Modified: synapse/trunk/java/modules/handler/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/handler/pom.xml?rev=674006&r1=674005&r2=674006&view=diff
==============================================================================
--- synapse/trunk/java/modules/handler/pom.xml (original)
+++ synapse/trunk/java/modules/handler/pom.xml Fri Jul 4 04:11:45 2008
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.synapse</groupId>
<artifactId>Apache-Synapse</artifactId>
- <version>SNAPSHOT</version>
+ <version>1.3-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -35,13 +35,55 @@
<name>Apache Synapse - Handler Module</name>
<description>Apache Synapse - Handler Module</description>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
<build>
<plugins>
<plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.0</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-Version>${pom.version}</Bundle-Version>
+ <Bundle-Name>${pom.artifactId}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Description>${pom.description}</Bundle-Description>
+ <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Private-Package>
+ org.apache.synapse.util;-split-package:=merge-first,
+ org.apache.synapse.handler,
+ </Private-Package>
+ <Export-Package>
+ !*,
+ </Export-Package>
+ <Import-Package>
+ org.apache.axiom.attachments,
+ org.apache.axiom.soap,
+ org.apache.axis2,
+ org.apache.axis2.addressing,
+ org.apache.axis2.context,
+ org.apache.axis2.description,
+ org.apache.axis2.engine,
+ org.apache.axis2.handlers,
+ org.apache.axis2.modules,
+ org.apache.commons.logging,
+ org.apache.neethi,
+ org.apache.synapse,
+ org.apache.synapse.config,
+ org.apache.synapse.core,
+ org.apache.synapse.core.axis2,
+ org.apache.synapse.util
+ *;resolution:=optional,
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
@@ -91,6 +133,7 @@
<dependency>
<groupId>org.apache.synapse</groupId>
<artifactId>synapse-core</artifactId>
+ <scope>provided</scope>
</dependency>
</dependencies>
Modified: synapse/trunk/java/modules/mar/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/mar/pom.xml?rev=674006&r1=674005&r2=674006&view=diff
==============================================================================
--- synapse/trunk/java/modules/mar/pom.xml (original)
+++ synapse/trunk/java/modules/mar/pom.xml Fri Jul 4 04:11:45 2008
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.synapse</groupId>
<artifactId>Apache-Synapse</artifactId>
- <version>SNAPSHOT</version>
+ <version>1.3-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: synapse/trunk/java/modules/samples/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/samples/pom.xml?rev=674006&r1=674005&r2=674006&view=diff
==============================================================================
--- synapse/trunk/java/modules/samples/pom.xml (original)
+++ synapse/trunk/java/modules/samples/pom.xml Fri Jul 4 04:11:45 2008
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.synapse</groupId>
<artifactId>Apache-Synapse</artifactId>
- <version>SNAPSHOT</version>
+ <version>1.3-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
@@ -35,7 +35,7 @@
<name>Apache Synapse - Samples</name>
<description>Apache Synapse - Samples</description>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
<profiles>
<profile>
@@ -387,6 +387,27 @@
</profile>
</profiles>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.0</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-Version>${pom.version}</Bundle-Version>
+ <Bundle-Name>${pom.artifactId}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Description>${pom.description}</Bundle-Description>
+ <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Private-Package>samples.*</Private-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
<dependencies>
<dependency>
<groupId>org.apache.synapse</groupId>
Modified: synapse/trunk/java/modules/transports/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/transports/pom.xml?rev=674006&r1=674005&r2=674006&view=diff
==============================================================================
--- synapse/trunk/java/modules/transports/pom.xml (original)
+++ synapse/trunk/java/modules/transports/pom.xml Fri Jul 4 04:11:45 2008
@@ -26,14 +26,14 @@
<parent>
<groupId>org.apache.synapse</groupId>
<artifactId>Apache-Synapse</artifactId>
- <version>SNAPSHOT</version>
+ <version>1.3-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>synapse-transports</artifactId>
<name>Apache Synapse - Transports</name>
<description>Apache Synapse - Transports</description>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
<build>
<plugins>
@@ -77,6 +77,24 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>1.4.0</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-Version>${pom.version}</Bundle-Version>
+ <Bundle-Name>${pom.artifactId}</Bundle-Name>
+ <Bundle-Vendor>Apache Software Foundation</Bundle-Vendor>
+ <Bundle-Description>${pom.description}</Bundle-Description>
+ <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+ <Export-Package>
+ org.apache.synapse.*;-split-package:=merge-last,
+ </Export-Package>
+ </instructions>
+ </configuration>
+ </plugin>
</plugins>
</build>
Modified: synapse/trunk/java/modules/war/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/war/pom.xml?rev=674006&r1=674005&r2=674006&view=diff
==============================================================================
--- synapse/trunk/java/modules/war/pom.xml (original)
+++ synapse/trunk/java/modules/war/pom.xml Fri Jul 4 04:11:45 2008
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.synapse</groupId>
<artifactId>synapse</artifactId>
- <version>SNAPSHOT</version>
+ <version>1.3-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: synapse/trunk/java/modules/xar-maven-plugin/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/xar-maven-plugin/pom.xml?rev=674006&r1=674005&r2=674006&view=diff
==============================================================================
--- synapse/trunk/java/modules/xar-maven-plugin/pom.xml (original)
+++ synapse/trunk/java/modules/xar-maven-plugin/pom.xml Fri Jul 4 04:11:45 2008
@@ -23,7 +23,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.synapse</groupId>
<artifactId>synapse-xar-maven-plugin</artifactId>
- <version>SNAPSHOT</version>
+ <version>1.3-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Apache Synapse - XAR Maven Plugin</name>
<description>Maven 2 plugin to create Synapse extension archives</description>
Modified: synapse/trunk/java/pom.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/pom.xml?rev=674006&r1=674005&r2=674006&view=diff
==============================================================================
--- synapse/trunk/java/pom.xml (original)
+++ synapse/trunk/java/pom.xml Fri Jul 4 04:11:45 2008
@@ -32,7 +32,7 @@
<groupId>org.apache.synapse</groupId>
<artifactId>Apache-Synapse</artifactId>
- <version>SNAPSHOT</version>
+ <version>1.3-SNAPSHOT</version>
<name>Apache Synapse</name>
<description>Apache Synapse</description>
@@ -1112,7 +1112,7 @@
<properties>
<!-- Synapse and related components -->
- <synapse.version>SNAPSHOT</synapse.version>
+ <synapse.version>1.3-SNAPSHOT</synapse.version>
<httpcore.nio.version>4.0-beta1</httpcore.nio.version>
<commons.dbcp.version>1.2.2</commons.dbcp.version>
<commons.pool.version>1.3</commons.pool.version>