[SMX4-889] Add netty 3.2.5.Final OSGi bundle
git-svn-id: https://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/netty-3.2.5.Final@1153747 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..b3f8c6c
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,115 @@
+<?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.netty</artifactId>
+ <version>3.2.5.Final_1-SNAPSHOT</version>
+ <packaging>bundle</packaging>
+ <name>Apache ServiceMix :: Bundles :: ${pkgArtifactId}</name>
+ <description>This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.</description>
+
+ <properties>
+ <pkgGroupId>org.jboss.netty</pkgGroupId>
+ <pkgArtifactId>netty</pkgArtifactId>
+ <pkgVersion>3.2.5.Final</pkgVersion>
+ <servicemix.osgi.export.pkg>
+ org.jboss.netty
+ </servicemix.osgi.export.pkg>
+ <servicemix.osgi.import.pkg>
+ !org.jboss.netty*,
+ javax.net*,
+ com.google.protobuf*;resolution:=optional;version="[2,3)",
+ javax.servlet*;resolution:=optional;version="[2.5,3)",
+ org.apache.commons.logging*;resolution:=optional;version="[1.1,2)",
+ org.apache.log4j*;resolution:=optional,
+ org.jboss.logging*;resolution:=optional,
+ org.slf4j*;resolution:=optional,
+ *
+ </servicemix.osgi.import.pkg>
+ </properties>
+
+ <repositories>
+ <repository>
+ <!-- JBoss Maven2 Repository -->
+ <id>jboss.m2</id>
+ <name>JBoss Maven2 Repository</name>
+ <url>http://repository.jboss.org/nexus/content/groups/public</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>${pkgGroupId}</groupId>
+ <artifactId>${pkgArtifactId}</artifactId>
+ <version>${pkgVersion}</version>
+ <optional>true</optional>
+ </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/OSGI-INF/bundle.info b/src/main/resources/OSGI-INF/bundle.info
new file mode 100644
index 0000000..824fcec
--- /dev/null
+++ b/src/main/resources/OSGI-INF/bundle.info
@@ -0,0 +1,18 @@
+\u001B[1mSYNOPSIS\u001B[0m
+ ${project.description}
+
+ Original Maven URL:
+ \u001B[33mmvn:http://repository.jboss.org/nexus/content/groups/public:${pkgGroupId}/${pkgArtifactId}/${pkgVersion}\u001B[0m
+
+\u001B[1mDESCRIPTION\u001B[0m
+ Netty is a NIO client server framework which enables quick and easy development of network applications such as
+ protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP
+ socket server.
+
+ 'Quick and easy' doesn't mean that a resulting application will suffer from a maintainability or a performance
+ issue. Netty has been designed carefully with the experiences earned from the implementation of a lot of protocols
+ such as FTP, SMTP, HTTP, and various binary and text-based legacy protocols. As a result, Netty has succeeded to
+ find a way to achieve ease of development, performance, stability, and flexibility without a compromise.
+
+\u001B[1mSEE ALSO\u001B[0m
+ \u001B[36mhttp://www.jboss.org/netty\u001B[0m