[#870] Convert all modules into osgi bundles

This commit is contained in:
Norman Maurer 2013-02-06 07:57:11 +01:00
parent 992d431a95
commit fd75615d7a
12 changed files with 66 additions and 14 deletions

View File

@ -24,7 +24,7 @@
</parent>
<artifactId>netty-buffer</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Buffer</name>

View File

@ -24,7 +24,7 @@
</parent>
<artifactId>netty-codec-http</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Codec/HTTP</name>

View File

@ -24,7 +24,7 @@
</parent>
<artifactId>netty-codec-socks</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Codec/Socks</name>

View File

@ -24,7 +24,7 @@
</parent>
<artifactId>netty-codec</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Codec</name>

View File

@ -25,7 +25,7 @@
</parent>
<artifactId>netty-common</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Common</name>
@ -47,6 +47,27 @@
<optional>true</optional>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<!-- enforce JVM vendor package as optional -->
<Import-Package>
sun.misc.*;resolution:=optional,
*
</Import-Package>
<!-- override "internal" private package convention -->
<Private-Package>
!*
</Private-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -24,7 +24,7 @@
</parent>
<artifactId>netty-handler</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Handler</name>

View File

@ -24,7 +24,7 @@
</parent>
<artifactId>netty-microbench</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Microbench</name>

17
pom.xml
View File

@ -354,7 +354,6 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<includes>
<include>**/*Test*.java</include>
@ -421,11 +420,27 @@
<tagNameFormat>netty-@{project.version}</tagNameFormat>
</configuration>
</plugin>
<!-- always produce osgi bundles -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- keep surefire and failsafe in sync -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
</plugin>
<!-- keep surefire and failsafe in sync -->
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.12</version>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>

View File

@ -17,6 +17,7 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
@ -24,7 +25,7 @@
</parent>
<artifactId>netty-transport-rxtx</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Transport/RXTX</name>
@ -44,6 +45,7 @@
<artifactId>netty-transport</artifactId>
<version>${project.version}</version>
</dependency>
<!-- FIXME find/make osgi bundle -->
<dependency>
<groupId>org.rxtx</groupId>
<artifactId>rxtx</artifactId>
@ -51,4 +53,3 @@
</dependencies>
</project>

View File

@ -24,7 +24,7 @@
</parent>
<artifactId>netty-transport-sctp</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Transport/SCTP</name>

View File

@ -26,7 +26,7 @@
</parent>
<artifactId>netty-transport-udt</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Transport/UDT</name>
@ -77,6 +77,7 @@
<build>
<plugins>
<!-- run each test in separate JVM -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@ -85,6 +86,20 @@
</configuration>
</plugin>
<!-- attach and deploy tests artifact -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -24,7 +24,7 @@
</parent>
<artifactId>netty-transport</artifactId>
<packaging>jar</packaging>
<packaging>bundle</packaging>
<name>Netty/Transport</name>