[SMX4-1363] Create OSGi bundle for saaj-impl 1.3.20

git-svn-id: https://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/saaj-impl-1.3.20@1435443 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..00b48f5
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,173 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <!--
+
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        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.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.bundles</groupId>
+        <artifactId>bundles-pom</artifactId>
+        <version>10</version>
+        <relativePath>../bundles-pom/pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.servicemix.bundles</groupId>
+    <artifactId>org.apache.servicemix.bundles.saaj-impl</artifactId>
+    <version>1.3.20_1-SNAPSHOT</version>
+    <packaging>bundle</packaging>
+    <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+    <description>This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.</description>
+
+    <properties>
+        <pkgGroupId>com.sun.xml.messaging.saaj</pkgGroupId>
+        <pkgArtifactId>saaj-impl</pkgArtifactId>
+        <pkgVersion>1.3.20</pkgVersion>
+        <servicemix.osgi.failok>true</servicemix.osgi.failok>
+        <servicemix.osgi.export.pkg>
+            com.sun.xml.messaging.saaj
+        </servicemix.osgi.export.pkg>
+        <servicemix.osgi.import.pkg>
+            org.jvnet.mimepull*;resolution:=optional,
+            javax.xml.soap,
+            javax.xml.transform.stax*;resolution:=optional,
+            javax.activation,
+            javax.imageio,
+            javax.imageio.stream,
+            javax.xml.datatype,
+            javax.xml.namespace,
+            javax.xml.parsers,
+            javax.xml.stream,
+            javax.xml.stream.events,
+            javax.xml.stream.util,
+            javax.xml.transform,
+            javax.xml.transform.dom,
+            javax.xml.transform.sax,
+            javax.xml.transform.stream,
+            javax.xml.validation,
+            org.w3c.dom,
+            org.w3c.dom.events,
+            org.w3c.dom.html,
+            org.w3c.dom.ls,
+            org.w3c.dom.ranges,
+            org.w3c.dom.traversal,
+            org.xml.sax,
+            org.xml.sax.ext,
+            org.xml.sax.helpers
+        </servicemix.osgi.import.pkg>
+        <servicemix.osgi.private.pkg>
+            META-INF;-split-package:=merge-first,
+            META-INF.services;-split-package:=first,
+            com.sun.org.apache.xerces.internal.dom*;-split-package:=merge-first,
+            com.sun.org.apache.xerces.internal.jaxp*;-split-package:=merge-first,
+            com.sun.org.apache.xerces.internal.util*;-split-package:=merge-first,
+            com.sun.org.apache.xerces.internal.impl*;-split-package:=merge-first,
+            com.sun.org.apache.xerces.internal.xni*;-split-package:=merge-first,
+            com.sun.org.apache.xerces.internal.parsers*;-split-package:=merge-first,
+            com.sun.org.apache.xerces.internal.xs*;-split-package:=merge-first,
+            com.sun.org.apache.xml.internal.serialize,
+            com.sun.xml.internal.stream*,
+            com.sun.org.apache.xml.internal.resolver*,
+            com.sun.org.apache.xerces.internal.xinclude,
+            com.sun.org.apache.xerces.internal.xpointer
+        </servicemix.osgi.private.pkg>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+            <optional>true</optional>
+            <exclusions>
+                <exclusion>
+                    <groupId>javax.xml.soap</groupId>
+                    <artifactId>saaj-api</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>com.sun.xml.parsers</groupId>
+            <artifactId>jaxp-ri</artifactId>
+            <version>1.4.5</version>
+            <optional>true</optional>
+            <scope>provided</scope>
+            <exclusions>
+                <exclusion>
+                    <groupId>javax.xml.parsers</groupId>
+                    <artifactId>jaxp-api</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.servicemix.specs</groupId>
+            <artifactId>org.apache.servicemix.specs.saaj-api-1.3</artifactId>
+            <version>2.2.0</version>
+        </dependency>
+
+        <!-- sources -->
+        <dependency>
+            <groupId>${pkgGroupId}</groupId>
+            <artifactId>${pkgArtifactId}</artifactId>
+            <version>${pkgVersion}</version>
+            <classifier>sources</classifier>
+            <optional>true</optional>
+            <exclusions>
+                <exclusion>
+                    <groupId>javax.xml.soap</groupId>
+                    <artifactId>saaj-api</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <configuration>
+                            <artifactSet>
+                                <includes>
+                                    <include>${pkgGroupId}:${pkgArtifactId}</include>
+                                </includes>
+                            </artifactSet>
+                            <filters>
+                                <filter>
+                                    <artifact>${pkgGroupId}:${pkgArtifactId}</artifact>
+                                    <excludes>
+                                        <exclude>**</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
+                            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+                            <createDependencyReducedPom>true</createDependencyReducedPom>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/src/main/resources/META-INF/services/javax.xml.soap.MessageFactory b/src/main/resources/META-INF/services/javax.xml.soap.MessageFactory
new file mode 100644
index 0000000..62ff39b
--- /dev/null
+++ b/src/main/resources/META-INF/services/javax.xml.soap.MessageFactory
@@ -0,0 +1 @@
+com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
diff --git a/src/main/resources/META-INF/services/javax.xml.soap.MetaFactory b/src/main/resources/META-INF/services/javax.xml.soap.MetaFactory
new file mode 100644
index 0000000..a09cd2b
--- /dev/null
+++ b/src/main/resources/META-INF/services/javax.xml.soap.MetaFactory
@@ -0,0 +1 @@
+com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl
diff --git a/src/main/resources/META-INF/services/javax.xml.soap.SOAPConnectionFactory b/src/main/resources/META-INF/services/javax.xml.soap.SOAPConnectionFactory
new file mode 100644
index 0000000..0b7aac8
--- /dev/null
+++ b/src/main/resources/META-INF/services/javax.xml.soap.SOAPConnectionFactory
@@ -0,0 +1 @@
+com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory
diff --git a/src/main/resources/META-INF/services/javax.xml.soap.SOAPFactory b/src/main/resources/META-INF/services/javax.xml.soap.SOAPFactory
new file mode 100644
index 0000000..30accae
--- /dev/null
+++ b/src/main/resources/META-INF/services/javax.xml.soap.SOAPFactory
@@ -0,0 +1 @@
+com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl
diff --git a/src/main/resources/OSGI-INF/bundle.info b/src/main/resources/OSGI-INF/bundle.info
new file mode 100644
index 0000000..0cd523a
--- /dev/null
+++ b/src/main/resources/OSGI-INF/bundle.info
@@ -0,0 +1,11 @@
+\u001B[1mSYNOPSIS\u001B[0m
+    ${project.description}
+
+    Original Maven URL:
+        \u001B[33mmvn:${pkgGroupId}/${pkgArtifactId}/${pkgVersion}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+    SAAJ (SOAP with Attachments API for Java) allows the support of attachment to the SOAP protocol.
+
+\u001B[1mSEE ALSO\u001B[0m
+    \u001B[36mhttp://java.net/projects/saaj/\u001B[0m