From 4c186c4c41d6eaa55086e4017fb6e3b4af13397f Mon Sep 17 00:00:00 2001 From: Milos Fabian Date: Sat, 7 May 2016 20:41:19 +0100 Subject: [PATCH] Make netty-transport-native-epoll-*-linux-x86_64.jar working in OSGi Motivation: Currenlty, netty-transport-native-epoll-*-linux-x86_64.jar is not packed as OSGi bundle and thus not working in OSGi environment. Modifications: In netty-transport-native-epoll's pom.xml added configuration to attach manifest to the jar with a native library. In netty-common's pom.xml added configuration instruction (DynamicImport-Package) to maven bnd plugin to make sure the native code is loaded from netty-transport-native-epoll bundle. Result: The netty-transport-native-epoll-*-linux-x86_64.jar is a bundle (MANIFEST.MF attached) and the inluced native library can be successfuly loaded in OSGi environment. Fixing #5119 --- common/pom.xml | 21 +++++++++++++++++++++ transport-native-epoll/pom.xml | 7 +++++++ 2 files changed, 28 insertions(+) diff --git a/common/pom.xml b/common/pom.xml index 6385c93285..d0b99399e5 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -138,6 +138,27 @@ + + org.apache.felix + maven-bundle-plugin + 2.4.0 + + + generate-manifest + process-classes + + manifest + + + + + * + + + + + diff --git a/transport-native-epoll/pom.xml b/transport-native-epoll/pom.xml index a705b08eba..b12ba73623 100644 --- a/transport-native-epoll/pom.xml +++ b/transport-native-epoll/pom.xml @@ -105,6 +105,13 @@ jar + + + true + + true + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + ${epoll.classifier}