From 4107b08f29be35fd2e63f03e49f7f49dbf94578c Mon Sep 17 00:00:00 2001 From: dantran Date: Sun, 18 Nov 2012 16:05:45 -0800 Subject: [PATCH] Only generate OSGi manifest only at all-in-on sub module to reduce the complexity to the build --- all/pom.xml | 5 +++++ buffer/pom.xml | 28 ++-------------------------- codec-http/pom.xml | 27 +-------------------------- codec/pom.xml | 32 +------------------------------- common/pom.xml | 32 +------------------------------- handler/pom.xml | 30 ++---------------------------- metrics-yammer/pom.xml | 28 +++------------------------- pom.xml | 17 ++++++----------- transport/pom.xml | 34 ++++++++-------------------------- 9 files changed, 29 insertions(+), 204 deletions(-) diff --git a/all/pom.xml b/all/pom.xml index 10061698c6..27d104f341 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -319,12 +319,17 @@ com.sun.nio.sctp;resolution:=optional, sun.misc;resolution:=optional, sun.net.util;resolution:=optional, + !io.netty.*, * !io.netty.example.*, + !io.netty.*.internal.*, io.netty.* + + io.netty.*.internal.* + diff --git a/buffer/pom.xml b/buffer/pom.xml index 8087b10ce1..3e0d5f3fec 100644 --- a/buffer/pom.xml +++ b/buffer/pom.xml @@ -24,7 +24,7 @@ netty-buffer - bundle + jar Netty/Buffer @@ -36,28 +36,4 @@ - - - - - org.apache.felix - maven-bundle-plugin - true - - - - sun.misc;resolution:=optional, - * - - - io.netty.buffer - - - - - - - - - - + \ No newline at end of file diff --git a/codec-http/pom.xml b/codec-http/pom.xml index d92e9e1eaa..22740011ed 100644 --- a/codec-http/pom.xml +++ b/codec-http/pom.xml @@ -24,7 +24,7 @@ netty-codec-http - bundle + jar Netty/Codec/HTTP @@ -41,31 +41,6 @@ - - - - - org.apache.felix - maven-bundle-plugin - true - - - - * - - - io.netty.handler.codec.http, - io.netty.handler.codec.http.multipart, - io.netty.handler.codec.http.websocketx, - io.netty.handler.codec.rtsp, - io.netty.handler.codec.spdy - - - - - - - diff --git a/codec/pom.xml b/codec/pom.xml index 3aaa408daa..66ffea1065 100644 --- a/codec/pom.xml +++ b/codec/pom.xml @@ -24,7 +24,7 @@ netty-codec - bundle + jar Netty/Codec @@ -57,36 +57,6 @@ test - - - - - - org.apache.felix - maven-bundle-plugin - true - - - - * - - - io.netty.handler.codec, - io.netty.handler.codec.base64, - io.netty.handler.codec.bytes, - io.netty.handler.codec.compression, - io.netty.handler.codec.marshalling, - io.netty.handler.codec.protobuf, - io.netty.handler.codec.sctp, - io.netty.handler.codec.serialization, - io.netty.handler.codec.string - - - - - - - diff --git a/common/pom.xml b/common/pom.xml index 4a229f69f6..22a2b3a55a 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -25,7 +25,7 @@ netty-common - bundle + jar Netty/Common @@ -69,35 +69,5 @@ - - - - - org.apache.felix - maven-bundle-plugin - true - - - - sun.misc;resolution:=optional, - * - - - io.netty.logging, - io.netty.monitor, - io.netty.monitor.spi, - io.netty.util, - io.netty.util.internal, - io.netty.util.internal.jzlib - - - - - - - - - - diff --git a/handler/pom.xml b/handler/pom.xml index e52c410410..1960e5fbc2 100644 --- a/handler/pom.xml +++ b/handler/pom.xml @@ -24,7 +24,7 @@ netty-handler - bundle + jar Netty/Handler @@ -40,31 +40,5 @@ ${project.version} - - - - - - org.apache.felix - maven-bundle-plugin - true - - - - * - - - io.netty.handler.logging, - io.netty.handler.ssl, - io.netty.handler.stream, - io.netty.handler.timeout - - - - - - - - - + \ No newline at end of file diff --git a/metrics-yammer/pom.xml b/metrics-yammer/pom.xml index ac083e50ab..6c4b16e81d 100644 --- a/metrics-yammer/pom.xml +++ b/metrics-yammer/pom.xml @@ -24,7 +24,7 @@ netty-metrics-yammer - bundle + jar Netty/Yammer Metrics Provider @@ -41,27 +41,5 @@ compile - - - - - org.apache.felix - maven-bundle-plugin - true - - - - * - - - io.netty.monitor.yammer, - io.netty.monitor.yammer.spi - - - - - - - - - + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index a68ebec8f1..a08d2ec890 100644 --- a/pom.xml +++ b/pom.xml @@ -388,6 +388,7 @@ netty-@{project.version} + @@ -425,19 +426,12 @@ org.codehaus.mojo build-helper-maven-plugin 1.7 - + org.apache.felix maven-bundle-plugin 2.3.7 - - - ${project.artifactId} - <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@))) - - - - + @@ -499,6 +493,7 @@ + + - - + \ No newline at end of file diff --git a/transport/pom.xml b/transport/pom.xml index 5cd9b7b139..eb76fed90b 100644 --- a/transport/pom.xml +++ b/transport/pom.xml @@ -24,7 +24,7 @@ netty-transport - bundle + jar Netty/Transport @@ -40,31 +40,13 @@ - org.apache.felix - maven-bundle-plugin - true + org.apache.maven.plugins + maven-jar-plugin - - - com.sun.nio.sctp;resolution:=optional, - sun.misc;resolution:=optional, - * - - - io.netty.bootstrap, - io.netty.channel, - io.netty.channel.embedded, - io.netty.channel.group, - io.netty.channel.local, - io.netty.channel.socket, - io.netty.channel.socket.aio, - io.netty.channel.socket.nio, - io.netty.channel.socket.oio - - - !com.sun.nio.sctp - - + + + com/** + @@ -72,5 +54,5 @@ - +