diff --git a/all/pom.xml b/all/pom.xml index c59748a0191..cffb1a8ae51 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -34,13 +34,126 @@ + - full + uber + + + staged-releases + Staged Releases + https://oss.sonatype.org/service/local/repositories/${stagingRepositoryId}/content/ + + + + + + + + ${project.groupId} + netty-transport-native-epoll + ${project.version} + linux-x86_64 + compile + true + + + ${project.groupId} + netty-transport-native-kqueue + ${project.version} + osx-x86_64 + compile + true + + + + + + + linux + + + linux + + + + + + ${project.groupId} + netty-transport-native-epoll + ${project.version} + ${jni.classifier} + compile + true + + + + + + mac + + + mac + + + + + + ${project.groupId} + netty-transport-native-kqueue + ${project.version} + ${jni.classifier} + compile + true + + + + + freebsd + + + unix + freebsd + + + + + + ${project.groupId} + netty-transport-native-kqueue + ${project.version} + ${jni.classifier} + compile + true + + + + + openbsd - - uber - + + unix + openbsd + + + + + ${project.groupId} + netty-transport-native-kqueue + ${project.version} + ${jni.classifier} + compile + true + + + + + + full @@ -332,22 +445,6 @@ compile true - - ${project.groupId} - netty-transport-native-epoll - ${project.version} - linux-x86_64 - compile - true - - - ${project.groupId} - netty-transport-native-kqueue - ${project.version} - osx-x86_64 - compile - true - diff --git a/pom.xml b/pom.xml index b6100ea7c9a..1361fa645d4 100644 --- a/pom.xml +++ b/pom.xml @@ -138,81 +138,6 @@ false - - linux - - - linux - - - - transport-native-unix-common-tests - transport-native-unix-common - transport-native-epoll - - - - mac - - - mac - - - - transport-native-unix-common-tests - transport-native-unix-common - transport-native-kqueue - - - - freebsd - - - unix - freebsd - - - - transport-native-unix-common-tests - transport-native-unix-common - transport-native-kqueue - - - - openbsd - - - unix - openbsd - - - - transport-native-unix-common-tests - transport-native-unix-common - transport-native-kqueue - - - - - uber - - - uber - - - - all - tarball - - maven-release-plugin 2.5.3 false - -P restricted-release,sonatype-oss-release + -P restricted-release,sonatype-oss-release,full true false netty-@{project.version} diff --git a/tarball/pom.xml b/tarball/pom.xml index 7fec0ad0696..a033a3285e6 100644 --- a/tarball/pom.xml +++ b/tarball/pom.xml @@ -94,13 +94,40 @@ + + + uber + + + staged-releases + Staged Releases + https://oss.sonatype.org/service/local/repositories/${stagingRepositoryId}/content/ + + + + + + + ${project.groupId} + netty-transport-native-epoll + ${project.version} + linux-x86_64 + compile + true + + + ${project.groupId} + netty-transport-native-kqueue + ${project.version} + osx-x86_64 + compile + true + + + + full - - - uber - - diff --git a/transport-native-epoll/pom.xml b/transport-native-epoll/pom.xml index dc2800c0977..0c6012750b9 100644 --- a/transport-native-epoll/pom.xml +++ b/transport-native-epoll/pom.xml @@ -34,6 +34,7 @@ ${unix.common.lib.dir}/META-INF/native/lib ${unix.common.lib.dir}/META-INF/native/include LDFLAGS=-L${unix.common.lib.unpacked.dir} -Wl,--no-as-needed -lrt -Wl,--whole-archive -l${unix.common.lib.name} -Wl,--no-whole-archive + true @@ -100,6 +101,208 @@ + + linux + + + linux + + + + false + + + + + + maven-dependency-plugin + + + + unpack + generate-sources + + unpack-dependencies + + + ${project.groupId} + netty-transport-native-unix-common + ${jni.classifier} + ${unix.common.lib.dir} + META-INF/native/** + false + true + + + + + + + org.fusesource.hawtjni + maven-hawtjni-plugin + + + build-native-lib + + ${project.basedir}/src/main/c + ${project.build.outputDirectory} + + . + true + true + + ${jni.compiler.args.ldflags} + ${jni.compiler.args.cflags} + + + + generate + build + + compile + + + + + maven-jar-plugin + + + + native-jar + + jar + + + + + true + + + META-INF/native/libnetty-transport-native-epoll.so; osname=linux; processor=x86_64,* + + true + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + ${jni.classifier} + + + + + + + maven-antrun-plugin + + + + validate + + run + + ant-get-systeminfo + + true + + + + + + + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + + initialize + regex-glibc-sendmmsg + + regex-property + + + glibc.sendmmsg.support + ${ldd_version} + + ^((?!^[^)]+\)\s+(0*2\.1[4-9]|0*2\.[2-9][0-9]+|0*[3-9][0-9]*|0*[1-9]+[0-9]+).*).)*$ + IO_NETTY_SENDMSSG_NOT_FOUND + false + + + + + initialize + regex-linux-sendmmsg + + regex-property + + + linux.sendmmsg.support + ${uname_os_version} + + ^((?!^[0-9]*[3-9]\.?.*).)*$ + IO_NETTY_SENDMSSG_NOT_FOUND + false + + + + + generate-sources + regex-combined-sendmmsg + + regex-property + + + jni.compiler.args.cflags + ${linux.sendmmsg.support}${glibc.sendmmsg.support} + + .*IO_NETTY_SENDMSSG_NOT_FOUND.* + CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND -Werror -fno-omit-frame-pointer -Wunused-variable -I${unix.common.include.unpacked.dir} + false + + + + + generate-sources + regex-unset-if-needed-sendmmsg + + regex-property + + + jni.compiler.args.cflags + ${jni.compiler.args.cflags} + + ^((?!CFLAGS=).)*$ + CFLAGS=-O3 -Werror -fno-omit-frame-pointer -Wunused-variable -I${unix.common.include.unpacked.dir} + false + + + + + + + + + + io.netty + netty-transport-native-unix-common + ${project.version} + ${jni.classifier} + + true + + + @@ -113,17 +316,6 @@ netty-buffer ${project.version} - - io.netty - netty-transport-native-unix-common - ${project.version} - ${jni.classifier} - - true - io.netty netty-transport-native-unix-common @@ -154,60 +346,9 @@ + - - maven-dependency-plugin - - - - unpack - generate-sources - - unpack-dependencies - - - ${project.groupId} - netty-transport-native-unix-common - ${jni.classifier} - ${unix.common.lib.dir} - META-INF/native/** - false - true - - - - - - - org.fusesource.hawtjni - maven-hawtjni-plugin - - - build-native-lib - - ${project.basedir}/src/main/c - ${project.build.outputDirectory} - - . - true - true - - ${jni.compiler.args.ldflags} - ${jni.compiler.args.cflags} - - - - generate - build - - compile - - - - maven-jar-plugin @@ -220,122 +361,6 @@ - - - native-jar - - jar - - - - - true - - - META-INF/native/libnetty-transport-native-epoll.so; osname=linux; processor=x86_64,* - - true - ${project.build.outputDirectory}/META-INF/MANIFEST.MF - - ${jni.classifier} - - - - - - - maven-antrun-plugin - - - - validate - - run - - ant-get-systeminfo - - true - - - - - - - - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - - initialize - regex-glibc-sendmmsg - - regex-property - - - glibc.sendmmsg.support - ${ldd_version} - - ^((?!^[^)]+\)\s+(0*2\.1[4-9]|0*2\.[2-9][0-9]+|0*[3-9][0-9]*|0*[1-9]+[0-9]+).*).)*$ - IO_NETTY_SENDMSSG_NOT_FOUND - false - - - - - initialize - regex-linux-sendmmsg - - regex-property - - - linux.sendmmsg.support - ${uname_os_version} - - ^((?!^[0-9]*[3-9]\.?.*).)*$ - IO_NETTY_SENDMSSG_NOT_FOUND - false - - - - - generate-sources - regex-combined-sendmmsg - - regex-property - - - jni.compiler.args.cflags - ${linux.sendmmsg.support}${glibc.sendmmsg.support} - - .*IO_NETTY_SENDMSSG_NOT_FOUND.* - CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND -Werror -fno-omit-frame-pointer -Wunused-variable -I${unix.common.include.unpacked.dir} - false - - - - - generate-sources - regex-unset-if-needed-sendmmsg - - regex-property - - - jni.compiler.args.cflags - ${jni.compiler.args.cflags} - - ^((?!CFLAGS=).)*$ - CFLAGS=-O3 -Werror -fno-omit-frame-pointer -Wunused-variable -I${unix.common.include.unpacked.dir} - false - - diff --git a/transport-native-kqueue/pom.xml b/transport-native-kqueue/pom.xml index aa467c85ea4..9d8c38a9d03 100644 --- a/transport-native-kqueue/pom.xml +++ b/transport-native-kqueue/pom.xml @@ -28,7 +28,7 @@ - osx + mac mac @@ -36,7 +36,314 @@ LDFLAGS=-Wl,-weak_library,${unix.common.lib.unpacked.dir}/lib${unix.common.lib.name}.a + false + + + + maven-dependency-plugin + + + + unpack + generate-sources + + unpack-dependencies + + + ${project.groupId} + netty-transport-native-unix-common + ${jni.classifier} + ${unix.common.lib.dir} + META-INF/native/** + false + true + + + + + + + org.fusesource.hawtjni + maven-hawtjni-plugin + + + build-native-lib + + ${project.basedir}/src/main/c + ${project.build.outputDirectory} + + . + true + true + + ${jni.compiler.args.ldflags} + ${jni.compiler.args.cflags} + + + + generate + build + + compile + + + + + + maven-jar-plugin + + + + native-jar + + jar + + + + + true + + + META-INF/native/libnetty-transport-native-kqueue.jnilib; osname=darwin, processor=x86_64" + + true + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + ${jni.classifier} + + + + + + + + + io.netty + netty-transport-native-unix-common + ${project.version} + ${jni.classifier} + + true + + + + + openbsd + + + unix + openbsd + + + + false + + + + + maven-dependency-plugin + + + + unpack + generate-sources + + unpack-dependencies + + + ${project.groupId} + netty-transport-native-unix-common + ${jni.classifier} + ${unix.common.lib.dir} + META-INF/native/** + false + true + + + + + + + org.fusesource.hawtjni + maven-hawtjni-plugin + + + build-native-lib + + ${project.basedir}/src/main/c + ${project.build.outputDirectory} + + . + true + true + + ${jni.compiler.args.ldflags} + ${jni.compiler.args.cflags} + + + + generate + build + + compile + + + + + + maven-jar-plugin + + + + native-jar + + jar + + + + + true + + + META-INF/native/libnetty-transport-native-kqueue.jnilib; osname=darwin, processor=x86_64" + + true + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + ${jni.classifier} + + + + + + + + + io.netty + netty-transport-native-unix-common + ${project.version} + ${jni.classifier} + + true + + + + + freebsd + + + unix + freebsd + + + + false + + + + + maven-dependency-plugin + + + + unpack + generate-sources + + unpack-dependencies + + + ${project.groupId} + netty-transport-native-unix-common + ${jni.classifier} + ${unix.common.lib.dir} + META-INF/native/** + false + true + + + + + + + org.fusesource.hawtjni + maven-hawtjni-plugin + + + build-native-lib + + ${project.basedir}/src/main/c + ${project.build.outputDirectory} + + . + true + true + + ${jni.compiler.args.ldflags} + ${jni.compiler.args.cflags} + + + + generate + build + + compile + + + + + + maven-jar-plugin + + + + native-jar + + jar + + + + + true + + + META-INF/native/libnetty-transport-native-kqueue.jnilib; osname=darwin, processor=x86_64" + + true + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + ${jni.classifier} + + + + + + + + + io.netty + netty-transport-native-unix-common + ${project.version} + ${jni.classifier} + + true + + @@ -49,6 +356,7 @@ ${unix.common.lib.dir}/META-INF/native/include CFLAGS=-O3 -Werror -fno-omit-frame-pointer -Wunused-variable -I${unix.common.include.unpacked.dir} LDFLAGS=-L${unix.common.lib.unpacked.dir} -Wl,--whole-archive -l${unix.common.lib.name} -Wl,--no-whole-archive + true @@ -62,17 +370,6 @@ netty-buffer ${project.version} - - io.netty - netty-transport-native-unix-common - ${project.version} - ${jni.classifier} - - true - io.netty netty-transport-native-unix-common @@ -105,58 +402,6 @@ - - maven-dependency-plugin - - - - unpack - generate-sources - - unpack-dependencies - - - ${project.groupId} - netty-transport-native-unix-common - ${jni.classifier} - ${unix.common.lib.dir} - META-INF/native/** - false - true - - - - - - - org.fusesource.hawtjni - maven-hawtjni-plugin - - - build-native-lib - - ${project.basedir}/src/main/c - ${project.build.outputDirectory} - - . - true - true - - ${jni.compiler.args.ldflags} - ${jni.compiler.args.cflags} - - - - generate - build - - compile - - - - maven-jar-plugin @@ -169,26 +414,6 @@ - - - native-jar - - jar - - - - - true - - - META-INF/native/libnetty-transport-native-kqueue.jnilib; osname=darwin, processor=x86_64" - - true - ${project.build.outputDirectory}/META-INF/MANIFEST.MF - - ${jni.classifier} - - diff --git a/transport-native-unix-common/pom.xml b/transport-native-unix-common/pom.xml index c26b70105f5..6583e7a53e2 100644 --- a/transport-native-unix-common/pom.xml +++ b/transport-native-unix-common/pom.xml @@ -54,6 +54,62 @@ clang darwin + + + + maven-antrun-plugin + + + + native-jar + package + + run + + + + + + + + + + + + + + + + + + + + + + build-native-lib + generate-sources + + run + + + + + + + + + + + + + + + + + + + + linux @@ -65,6 +121,62 @@ linux + + + + maven-antrun-plugin + + + + native-jar + package + + run + + + + + + + + + + + + + + + + + + + + + + build-native-lib + generate-sources + + run + + + + + + + + + + + + + + + + + + + + freebsd @@ -79,6 +191,62 @@ gmake freebsd + + + + maven-antrun-plugin + + + + native-jar + package + + run + + + + + + + + + + + + + + + + + + + + + + build-native-lib + generate-sources + + run + + + + + + + + + + + + + + + + + + + + openbsd @@ -93,6 +261,62 @@ gmake openbsd + + + + maven-antrun-plugin + + + + native-jar + package + + run + + + + + + + + + + + + + + + + + + + + + + build-native-lib + generate-sources + + run + + + + + + + + + + + + + + + + + + + + @@ -108,61 +332,4 @@ ${project.version} - - - - - maven-antrun-plugin - - - - native-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - build-native-lib - generate-sources - - run - - - - - - - - - - - - - - - - - - - -