[SMX4-866] Create OSGi bundle for Smack 3.2.0.
git-svn-id: https://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/smack-3.2.0@1138777 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..be8c366
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,124 @@
+<?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>6</version>
+ <relativePath>../bundles-pom/pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.apache.servicemix.bundles</groupId>
+ <artifactId>org.apache.servicemix.bundles.smack</artifactId>
+ <packaging>bundle</packaging>
+ <version>3.2.0_1-SNAPSHOT</version>
+ <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+ <description>This OSGi bundle wraps smack, and smackx ${pkgVersion} jar files.</description>
+
+ <properties>
+ <pkgGroupId>org.igniterealtime.smack</pkgGroupId>
+ <pkgArtifactId>smack</pkgArtifactId>
+ <pkgVersion>3.2.0</pkgVersion>
+ <servicemix.osgi.export>
+ org.jivesoftware*;version=${pkgVersion};-split-package:=merge-first,
+ com.jcraft.jzlib*;version=${pkgVersion};-split-package:=merge-first,
+ org.xmlpull*;version=${pkgVersion};-split-package:=merge-first
+ </servicemix.osgi.export>
+ <servicemix.osgi.import.pkg>
+ !org.jivesoftware*,
+ !com.jcraft.jzlib*,
+ !org.xmlpull*;resolution:=optional,
+ *
+ </servicemix.osgi.import.pkg>
+ <servicemix.osgi.embed.dependency>
+ *;inline=META-INF/smack.providers|META-INF/smack-config.xml|META-INF/services/*
+ </servicemix.osgi.embed.dependency>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>${pkgGroupId}</groupId>
+ <artifactId>smack</artifactId>
+ <version>${pkgVersion}</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>${pkgGroupId}</groupId>
+ <artifactId>smackx</artifactId>
+ <version>${pkgVersion}</version>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <!-- ServiceMix repository -->
+ <repository>
+ <id>smx-m2-repo</id>
+ <name>ServiceMix Maven Repository</name>
+ <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
+ </repository>
+ </repositories>
+
+ <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}:smack</include>
+ <include>${pkgGroupId}:smackx</include>
+ </includes>
+ </artifactSet>
+ <filters>
+ <filter>
+ <artifact>${pkgGroupId}:smack</artifact>
+ <excludes>
+ <exclude>**</exclude>
+ </excludes>
+ </filter>
+ <filter>
+ <artifact>${pkgGroupId}:smackx</artifact>
+ <excludes>
+ <exclude>**</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+ <createDependencyReducedPom>false</createDependencyReducedPom>
+ <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
diff --git a/src/main/resources/OSGi-INF/bundle.info b/src/main/resources/OSGi-INF/bundle.info
new file mode 100644
index 0000000..cca515a
--- /dev/null
+++ b/src/main/resources/OSGi-INF/bundle.info
@@ -0,0 +1,14 @@
+\u001B[1mSYNOPSIS\u001B[0m
+ ${project.description}
+
+ Original Maven URLs:
+ \u001B[33mmvn:${pkgGroupId}/smack/${pkgVersion}\u001B[0m
+ \u001B[33mmvn:${pkgGroupId}/smackx/${pkgVersion}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+ Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java library, it
+ can be embedded into your applications to create anything from a full XMPP client to simple XMPP integrations such
+ as sending notification messages and presence-enabling devices.
+
+\u001B[1mSEE ALSO\u001B[0m
+ \u001B[36mhttp://www.igniterealtime.org/projects/smack/\u001B[0m