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

billblough pushed a commit to branch transport
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-transports.git

commit 32a7889e733121a1009c5edcefb9d4cf5ebaa394
Author: Ruwan Linton <ru...@apache.org>
AuthorDate: Sun Dec 6 07:43:56 2009 +0000

    Now the complete jar is an OSGi bundle
---
 1.0.0/modules/all/pom.xml | 179 +++++++++++++++++-----------------------------
 1.0.0/pom.xml             |  14 ++++
 2 files changed, 80 insertions(+), 113 deletions(-)

diff --git a/1.0.0/modules/all/pom.xml b/1.0.0/modules/all/pom.xml
index 7036333..c5db7cd 100644
--- a/1.0.0/modules/all/pom.xml
+++ b/1.0.0/modules/all/pom.xml
@@ -30,85 +30,11 @@
     <groupId>org.apache.axis2</groupId>
     <artifactId>axis2-transport-all</artifactId>
     <version>1.0-SNAPSHOT</version>
-    <packaging>pom</packaging>
+    <packaging>bundle</packaging>
     <description>Axis2 Transport</description>
     <name>Apache Axis2 - Transport - All</name>
     <profiles>
         <profile>
-            <id>java15</id>
-            <activation>
-                <jdk>1.5</jdk>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-antrun-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>transport-jar</id>
-                                <phase>package</phase>
-                                <configuration>
-                                    <tasks>
-                                        <mkdir dir="target"/>
-                                        <jar 
destfile="target/axis2-transport-all-${pom.version}.jar">
-                                            <fileset 
dir="../jms/target/classes"/>
-                                            <fileset 
dir="../tcp/target/classes"/>
-                                            <fileset 
dir="../xmpp/target/classes"/>
-                                            <fileset 
dir="../base/target/classes"/>
-                                            <fileset 
dir="../mail/target/classes"/>
-                                            <fileset 
dir="../udp/target/classes"/>
-                                            <fileset 
dir="../sms/target/classes"/>
-                                        </jar>
-                                    </tasks>
-                                </configuration>
-                                <goals>
-                                    <goal>run</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-        <profile>
-            <id>java16</id>
-            <activation>
-                <jdk>1.6</jdk>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-antrun-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>transport-jar</id>
-                                <phase>package</phase>
-                                <configuration>
-                                    <tasks>
-                                        <mkdir dir="target"/>                  
                      
-                                        <jar 
destfile="target/axis2-transport-all-${pom.version}.jar">
-                                            <fileset 
dir="../jms/target/classes"/>
-                                            <fileset 
dir="../tcp/target/classes"/>
-                                            <fileset 
dir="../xmpp/target/classes"/>
-                                            <fileset 
dir="../base/target/classes"/>
-                                            <fileset 
dir="../mail/target/classes"/>
-                                            <fileset 
dir="../udp/target/classes"/>
-                                            <fileset 
dir="../sms/target/classes"/>
-                                        </jar>
-                                    </tasks>
-                                </configuration>
-                                <goals>
-                                    <goal>run</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-        <profile>
             <id>release</id>
             <activation>
                 <property>
@@ -178,6 +104,45 @@
             </build>
         </profile>
     </profiles>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-transport-base</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-transport-jms</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-transport-mail</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-transport-tcp</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-transport-sms</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-transport-xmpp</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.axis2</groupId>
+            <artifactId>axis2-transport-udp</artifactId>
+            <version>${pom.version}</version>
+        </dependency>
+    </dependencies>
+
     <build>
         <plugins>
             <!--<plugin>-->
@@ -191,47 +156,35 @@
                 <!--</configuration>-->
             <!--</plugin>-->
             <plugin>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <inherited>true</inherited>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <version>1.4.0</version>
+                <extensions>true</extensions>
                 <configuration>
-                    <source>1.5</source>
-                    <target>1.5</target>
+                    <instructions>
+                        <Bundle-Version>1.0</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.axis2.transport.base.*;-split-package:=merge-last,
+                            
org.apache.axis2.transport.jms.*;-split-package:=merge-last,
+                            
org.apache.axis2.transport.mail.*;-split-package:=merge-last,
+                            
org.apache.axis2.transport.tcp.*;-split-package:=merge-last,
+                            
org.apache.axis2.transport.sms.*;-split-package:=merge-last,
+                            
org.apache.axis2.transport.xmpp.*;-split-package:=merge-last,
+                            
org.apache.axis2.transport.udp.*;-split-package:=merge-last,
+                            
org.apache.axis2.format.*;-split-package:=merge-last,
+                        </Export-Package>
+                        <Import-Package>
+                            !javax.xml.namespace,
+                            javax.xml.namespace; version=0.0.0,
+                            *; resolution:=optional
+                        </Import-Package>
+                    </instructions>
                 </configuration>
             </plugin>
-            <plugin>
-                <artifactId>maven-source-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>jar</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <configuration>
-                    <attach>true</attach>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>build-helper-maven-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>axis2-jar-package</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>attach-artifact</goal>
-                        </goals>
-                        <configuration>
-                            <artifacts>
-                                <artifact>
-                                    
<file>target/axis2-transport-all-${pom.version}.jar</file>
-                                    <type>jar</type>
-                                </artifact>
-                            </artifacts>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
         </plugins>
     </build>
 </project>
diff --git a/1.0.0/pom.xml b/1.0.0/pom.xml
index 65e1e2d..4657438 100644
--- a/1.0.0/pom.xml
+++ b/1.0.0/pom.xml
@@ -439,6 +439,20 @@
                     <target>1.5</target>
                 </configuration>
             </plugin>
+            <plugin>
+                <artifactId>maven-source-plugin</artifactId>
+                <version>2.1.1</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <attach>true</attach>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
     

Reply via email to