Skip to content
Permalink
Browse files
[FLINK-9463] Rename native libraries in netty when shading
  • Loading branch information
zentol committed May 29, 2018
1 parent 149cec8 commit 02c6a24ce522a1709a805952b01c70085f90f079
Showing 1 changed file with 27 additions and 0 deletions.
@@ -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>

0 comments on commit 02c6a24

Please sign in to comment.