From 90213d3fb40da2d9754baf2840fd098d455d91a0 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Mon, 3 May 2021 15:53:03 +0200 Subject: [PATCH] Don't bundle all netty dependencies into netty-all (#11202) Motivation: netty-all already depends on the other netty-* packages so there's no need to also bundle them. The duplicated classes cause classpath issues, particularly with Java > 8, which reports errors like this: The package io.netty.buffer is accessible from more than one module: io.netty.all, io.netty.buffer Modifications: - Removed bundling tasks from netty-all's maven pom.xml Result: - netty-all no longer bundles all classes. Instead, classes are provided by expressed dependencies. Fixes #4671 --- all/pom.xml | 294 ---------------------------------------------------- 1 file changed, 294 deletions(-) diff --git a/all/pom.xml b/all/pom.xml index 1595835de4..438e674d5f 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -66,28 +66,24 @@ netty-transport-native-epoll linux-x86_64 compile - true ${project.groupId} netty-transport-native-epoll linux-aarch_64 compile - true ${project.groupId} netty-transport-native-kqueue osx-x86_64 compile - true ${project.groupId} netty-resolver-dns-native-macos osx-x86_64 compile - true @@ -102,28 +98,24 @@ netty-transport-native-epoll linux-x86_64 compile - true ${project.groupId} netty-transport-native-epoll linux-aarch_64 compile - true ${project.groupId} netty-transport-native-kqueue osx-x86_64 compile - true ${project.groupId} netty-resolver-dns-native-macos osx-x86_64 compile - true @@ -146,20 +138,17 @@ ${project.version} ${jni.classifier} compile - true ${project.groupId} netty-transport-native-kqueue compile - true ${project.groupId} netty-resolver-dns-native-macos compile - true @@ -181,7 +170,6 @@ ${project.version} ${jni.classifier} compile - true ${project.groupId} @@ -189,14 +177,12 @@ ${project.version} ${jni.classifier} compile - true ${project.groupId} netty-transport-native-epoll compile - true @@ -216,20 +202,17 @@ ${project.version} ${jni.classifier} compile - true ${project.groupId} netty-resolver-dns-native-macos compile - true ${project.groupId} netty-transport-native-epoll compile - true @@ -249,20 +232,17 @@ ${project.version} ${jni.classifier} compile - true ${project.groupId} netty-resolver-dns-native-macos compile - true ${project.groupId} netty-transport-native-epoll compile - true @@ -390,381 +370,107 @@ ${project.groupId} netty-buffer compile - true ${project.groupId} netty-codec compile - true ${project.groupId} netty-codec-dns compile - true ${project.groupId} netty-codec-haproxy compile - true ${project.groupId} netty-codec-http compile - true ${project.groupId} netty-codec-http2 compile - true ${project.groupId} netty-codec-memcache compile - true ${project.groupId} netty-codec-mqtt compile - true ${project.groupId} netty-codec-redis compile - true ${project.groupId} netty-codec-smtp compile - true ${project.groupId} netty-codec-socks compile - true ${project.groupId} netty-codec-stomp compile - true ${project.groupId} netty-codec-xml compile - true ${project.groupId} netty-common compile - true ${project.groupId} netty-handler compile - true ${project.groupId} netty-handler-proxy compile - true ${project.groupId} netty-resolver compile - true ${project.groupId} netty-resolver-dns compile - true ${project.groupId} netty-transport compile - true ${project.groupId} netty-transport-sctp compile - true ${project.groupId} netty-example compile - true - - - - - com.google.protobuf - protobuf-java - compile - true - - - org.jboss.marshalling - jboss-marshalling - compile - true - - - org.slf4j - slf4j-api - true - - - commons-logging - commons-logging - true - - - log4j - log4j - true - - - - - maven-clean-plugin - - - clean-first - generate-resources - - clean - - - - - - maven-dependency-plugin - - - - locate-dependencies - initialize - - properties - - - - - - unpack-sources - prepare-package - - unpack-dependencies - - - sources - io/netty/** - runtime - ${project.groupId} - ${generatedSourceDir} - - - - - - unpack-jars - prepare-package - - unpack-dependencies - - - io/netty/internal/tcnative/**,io/netty/example/**,META-INF/native/libnetty_tcnative*,META-INF/native/include/**,META-INF/native/**/*.a - io/netty/**,META-INF/native/**,META-INF/native-image/** - runtime - ${project.groupId} - ${project.build.outputDirectory} - - - - - - - maven-antrun-plugin - - - - write-version-properties - none - - - merge-version-properties - prepare-package - - run - - - - - - - - - - - - - - - - - - - - - - - - - clean-source-directory - package - - run - - - - - - - - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - prepare-package - - add-source - - - - ${generatedSourceDir} - - - - - - - - - org.apache.felix - maven-bundle-plugin - - - generate-manifest - none - - - - - - maven-jar-plugin - - - default-jar - none - - - all-in-one-jar - package - - jar - - - - - true - - - io.netty.all - - true - - - - - - - - - maven-checkstyle-plugin - - - check-style - none - - - - - - - maven-resources-plugin - - - default-resources - none - - - default-testResources - none - - - - - maven-compiler-plugin - - - default-compile - none - - - default-testCompile - none - - - - - maven-surefire-plugin - - - default-test - none - - - - -