Skip to content

Commit 669988c

Browse files
lhotarinikhil-ctds
authored andcommitted
[fix][misc] Rename netty native libraries in pulsar-client-admin-shaded (apache#22954)
(cherry picked from commit ddb03bb) (cherry picked from commit a7d4e20)
1 parent ae80ffd commit 669988c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pulsar-client-admin-shaded/pom.xml

+25
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,31 @@
304304
</execution>
305305
</executions>
306306
</plugin>
307+
308+
<plugin>
309+
<!-- This plugin is used to run a script after the package phase in order to rename
310+
libnetty_transport_native_epoll_x86_64.so from Netty into
311+
liborg_apache_pulsar_shade_netty_transport_native_epoll_x86_64.so
312+
to reflect the shade that is being applied.
313+
-->
314+
<artifactId>exec-maven-plugin</artifactId>
315+
<groupId>org.codehaus.mojo</groupId>
316+
<executions>
317+
<execution>
318+
<id>rename-epoll-library</id>
319+
<phase>package</phase>
320+
<goals>
321+
<goal>exec</goal>
322+
</goals>
323+
<configuration>
324+
<executable>${project.parent.basedir}/src/${rename.netty.native.libs}</executable>
325+
<arguments>
326+
<argument>${project.artifactId}</argument>
327+
</arguments>
328+
</configuration>
329+
</execution>
330+
</executions>
331+
</plugin>
307332
</plugins>
308333
</build>
309334
</project>

0 commit comments

Comments
 (0)