This is an automated email from the ASF dual-hosted git repository. chesnay pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink-shaded.git
commit 02c6a24ce522a1709a805952b01c70085f90f079 Author: zentol <[email protected]> AuthorDate: Mon May 28 18:12:10 2018 +0200 [FLINK-9463] Rename native libraries in netty when shading --- flink-shaded-netty-4/pom.xml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/flink-shaded-netty-4/pom.xml b/flink-shaded-netty-4/pom.xml index 0aa734b..5708f14 100644 --- a/flink-shaded-netty-4/pom.xml +++ b/flink-shaded-netty-4/pom.xml @@ -91,6 +91,33 @@ under the License. </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.7</version> + <executions> + <execution> + <id>rename-native-library</id> + <phase>package</phase> + <configuration> + <target> + <echo message="unpacking netty jar" /> + <unzip src="${project.build.directory}/${artifactId}-${version}.jar" dest="${project.build.directory}/unpacked/" /> + <echo message="renaming native epoll library" /> + <move todir="${project.build.directory}/unpacked/META-INF/native" includeemptydirs="false"> + <fileset dir="${project.build.directory}/unpacked/META-INF/native"/> + <mapper type="glob" from="libnetty_transport_native_epoll_x86_64.so" to="liborg_apache_flink_shaded_netty4_netty_transport_native_epoll_x86_64.so"/> + </move> + <echo message="repackaging netty jar" /> + <jar destfile="${project.build.directory}/${artifactId}-${version}.jar" basedir="${project.build.directory}/unpacked" /> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build>
