netty-transport-native-epoll-4.1.119.Final.pom 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2014 The Netty Project
  4. ~
  5. ~ The Netty Project licenses this file to you under the Apache License,
  6. ~ version 2.0 (the "License"); you may not use this file except in compliance
  7. ~ with the License. You may obtain a copy of the License at:
  8. ~
  9. ~ https://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. ~ License for the specific language governing permissions and limitations
  15. ~ under the License.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
  18. <modelVersion>4.0.0</modelVersion>
  19. <parent>
  20. <groupId>io.netty</groupId>
  21. <artifactId>netty-parent</artifactId>
  22. <version>4.1.119.Final</version>
  23. </parent>
  24. <artifactId>netty-transport-native-epoll</artifactId>
  25. <name>Netty/Transport/Native/Epoll</name>
  26. <packaging>jar</packaging>
  27. <properties>
  28. <javaModuleNameClassifier>${os.detected.name}.${os.detected.arch}</javaModuleNameClassifier>
  29. <javaModuleName>io.netty.transport.epoll.${javaModuleNameClassifier}</javaModuleName>
  30. <!-- Needed as we use SelfSignedCertificate in our tests -->
  31. <argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras>
  32. <!-- Always check JNI during test run so we catch bugs that could cause crashes -->
  33. <argLine.jni>-Xcheck:jni</argLine.jni>
  34. <unix.common.lib.name>netty-unix-common</unix.common.lib.name>
  35. <unix.common.lib.dir>${project.build.directory}/unix-common-lib</unix.common.lib.dir>
  36. <unix.common.lib.unpacked.dir>${unix.common.lib.dir}/META-INF/native/lib</unix.common.lib.unpacked.dir>
  37. <unix.common.include.unpacked.dir>${unix.common.lib.dir}/META-INF/native/include</unix.common.include.unpacked.dir>
  38. <jni.compiler.args.cflags>CFLAGS=-O2 -pipe -Werror -fno-omit-frame-pointer -Wunused-variable -fvisibility=hidden -D_FORTIFY_SOURCE=2 -ffunction-sections -fdata-sections -I${unix.common.include.unpacked.dir}</jni.compiler.args.cflags>
  39. <jni.compiler.args.ldflags>LDFLAGS=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--gc-sections -L${unix.common.lib.unpacked.dir}</jni.compiler.args.ldflags>
  40. <jni.compiler.args.libs>LIBS=-Wl,--whole-archive -l${unix.common.lib.name} -Wl,--no-whole-archive -ldl -lrt</jni.compiler.args.libs>
  41. <nativeSourceDirectory>${project.basedir}/src/main/c</nativeSourceDirectory>
  42. <skipTests>true</skipTests>
  43. <japicmp.skip>true</japicmp.skip>
  44. </properties>
  45. <profiles>
  46. <!--
  47. Netty must be released from RHEL 6.8 x86_64 or compatible so that:
  48. 1) we ship x86_64 version of epoll transport officially, and
  49. 2) we ensure the ABI compatibility with older GLIBC versions.
  50. The shared library built on a distribution with newer GLIBC
  51. will not run on older distributions.
  52. -->
  53. <profile>
  54. <id>restricted-release-epoll</id>
  55. <build>
  56. <pluginManagement>
  57. <plugins>
  58. <plugin>
  59. <artifactId>maven-enforcer-plugin</artifactId>
  60. <version>3.0.0</version>
  61. <dependencies>
  62. <!-- Provides the 'requireFilesContent' enforcer rule. -->
  63. <dependency>
  64. <groupId>com.ceilfors.maven.plugin</groupId>
  65. <artifactId>enforcer-rules</artifactId>
  66. <version>1.2.0</version>
  67. </dependency>
  68. </dependencies>
  69. </plugin>
  70. </plugins>
  71. </pluginManagement>
  72. <plugins>
  73. <plugin>
  74. <artifactId>maven-enforcer-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <id>enforce-release-environment</id>
  78. <goals>
  79. <goal>enforce</goal>
  80. </goals>
  81. <configuration>
  82. <rules>
  83. <requireProperty>
  84. <regexMessage>
  85. Release process must be performed on linux-x86_64.
  86. </regexMessage>
  87. <property>os.detected.classifier</property>
  88. <regex>^linux-x86_64$</regex>
  89. </requireProperty>
  90. <requireFilesContent>
  91. <message>
  92. Release process must be performed on RHEL 6.8 or its derivatives.
  93. </message>
  94. <files>
  95. <file>/etc/redhat-release</file>
  96. </files>
  97. <content>release 6.9</content>
  98. </requireFilesContent>
  99. </rules>
  100. </configuration>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. </plugins>
  105. </build>
  106. </profile>
  107. <profile>
  108. <id>linux</id>
  109. <activation>
  110. <os>
  111. <family>linux</family>
  112. </os>
  113. </activation>
  114. <properties>
  115. <skipTests>false</skipTests>
  116. </properties>
  117. <build>
  118. <plugins>
  119. <plugin>
  120. <artifactId>maven-dependency-plugin</artifactId>
  121. <executions>
  122. <!-- unpack the unix-common static library and include files -->
  123. <execution>
  124. <id>unpack</id>
  125. <phase>generate-sources</phase>
  126. <goals>
  127. <goal>unpack-dependencies</goal>
  128. </goals>
  129. <configuration>
  130. <includeGroupIds>${project.groupId}</includeGroupIds>
  131. <includeArtifactIds>netty-transport-native-unix-common</includeArtifactIds>
  132. <classifier>${jni.classifier}</classifier>
  133. <outputDirectory>${unix.common.lib.dir}</outputDirectory>
  134. <includes>META-INF/native/**</includes>
  135. <overWriteReleases>false</overWriteReleases>
  136. <overWriteSnapshots>true</overWriteSnapshots>
  137. </configuration>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.fusesource.hawtjni</groupId>
  143. <artifactId>hawtjni-maven-plugin</artifactId>
  144. <executions>
  145. <execution>
  146. <id>build-native-lib</id>
  147. <configuration>
  148. <name>netty_transport_native_epoll_${os.detected.arch}</name>
  149. <nativeSourceDirectory>${nativeSourceDirectory}</nativeSourceDirectory>
  150. <libDirectory>${project.build.outputDirectory}</libDirectory>
  151. <!-- We use Maven's artifact classifier instead.
  152. This hack will make the hawtjni plugin to put the native library
  153. under 'META-INF/native' rather than 'META-INF/native/${platform}'. -->
  154. <platform>.</platform>
  155. <configureArgs>
  156. <arg>${jni.compiler.args.ldflags}</arg>
  157. <arg>${jni.compiler.args.libs}</arg>
  158. <arg>${jni.compiler.args.cflags}</arg>
  159. <configureArg>--libdir=${project.build.directory}/native-build/target/lib</configureArg>
  160. </configureArgs>
  161. </configuration>
  162. <goals>
  163. <goal>generate</goal>
  164. <goal>build</goal>
  165. </goals>
  166. </execution>
  167. </executions>
  168. </plugin>
  169. <plugin>
  170. <artifactId>maven-jar-plugin</artifactId>
  171. <executions>
  172. <!-- Generate the JAR that contains the native library in it. -->
  173. <execution>
  174. <id>native-jar</id>
  175. <goals>
  176. <goal>jar</goal>
  177. </goals>
  178. <configuration>
  179. <archive>
  180. <manifest>
  181. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  182. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  183. </manifest>
  184. <manifestEntries>
  185. <Bundle-NativeCode>META-INF/native/libnetty_transport_native_epoll_${os.detected.arch}.so; osname=Linux; processor=${os.detected.arch},*</Bundle-NativeCode>
  186. <Fragment-Host>io.netty.transport-classes-epoll</Fragment-Host>
  187. <Automatic-Module-Name>${javaModuleName}</Automatic-Module-Name>
  188. </manifestEntries>
  189. <index>true</index>
  190. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  191. </archive>
  192. <classifier>${jni.classifier}</classifier>
  193. </configuration>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. </plugins>
  198. </build>
  199. <dependencies>
  200. <dependency>
  201. <groupId>io.netty</groupId>
  202. <artifactId>netty-transport-native-unix-common</artifactId>
  203. <version>${project.version}</version>
  204. <classifier>${jni.classifier}</classifier>
  205. <!--
  206. The unix-common with classifier dependency is optional because it is not a runtime dependency, but a build time
  207. dependency to get the static library which is built directly into the shared library generated by this project.
  208. -->
  209. <optional>true</optional>
  210. </dependency>
  211. </dependencies>
  212. </profile>
  213. <profile>
  214. <id>linux-aarch64</id>
  215. <properties>
  216. <!-- use aarch_64 as this is also what os.detected.arch will use on an aarch64 system -->
  217. <jni.classifier>${os.detected.name}-aarch_64</jni.classifier>
  218. <javaModuleNameClassifier>${os.detected.name}.aarch_64</javaModuleNameClassifier>
  219. </properties>
  220. <build>
  221. <pluginManagement>
  222. <plugins>
  223. <plugin>
  224. <artifactId>maven-enforcer-plugin</artifactId>
  225. <version>3.0.0</version>
  226. <dependencies>
  227. <!-- Provides the 'requireFilesContent' enforcer rule. -->
  228. <dependency>
  229. <groupId>com.ceilfors.maven.plugin</groupId>
  230. <artifactId>enforcer-rules</artifactId>
  231. <version>1.2.0</version>
  232. </dependency>
  233. </dependencies>
  234. </plugin>
  235. </plugins>
  236. </pluginManagement>
  237. <plugins>
  238. <plugin>
  239. <artifactId>maven-enforcer-plugin</artifactId>
  240. <executions>
  241. <execution>
  242. <id>enforce-release-environment</id>
  243. <goals>
  244. <goal>enforce</goal>
  245. </goals>
  246. <configuration>
  247. <rules>
  248. <requireProperty>
  249. <regexMessage>
  250. Cross compile and Release process must be performed on linux-x86_64.
  251. </regexMessage>
  252. <property>os.detected.classifier</property>
  253. <regex>^linux-x86_64.*</regex>
  254. </requireProperty>
  255. <requireFilesContent>
  256. <message>
  257. Cross compile and Release process must be performed on RHEL 7.6 or its derivatives.
  258. </message>
  259. <files>
  260. <file>/etc/redhat-release</file>
  261. </files>
  262. <content>release 7.6</content>
  263. </requireFilesContent>
  264. </rules>
  265. </configuration>
  266. </execution>
  267. </executions>
  268. </plugin>
  269. <plugin>
  270. <artifactId>maven-dependency-plugin</artifactId>
  271. <executions>
  272. <!-- unpack the unix-common static library and include files -->
  273. <execution>
  274. <id>unpack</id>
  275. <phase>generate-sources</phase>
  276. <goals>
  277. <goal>unpack-dependencies</goal>
  278. </goals>
  279. <configuration>
  280. <includeGroupIds>${project.groupId}</includeGroupIds>
  281. <includeArtifactIds>netty-transport-native-unix-common</includeArtifactIds>
  282. <classifier>${jni.classifier}</classifier>
  283. <outputDirectory>${unix.common.lib.dir}</outputDirectory>
  284. <includes>META-INF/native/**</includes>
  285. <overWriteReleases>false</overWriteReleases>
  286. <overWriteSnapshots>true</overWriteSnapshots>
  287. </configuration>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. <plugin>
  292. <groupId>org.fusesource.hawtjni</groupId>
  293. <artifactId>hawtjni-maven-plugin</artifactId>
  294. <executions>
  295. <execution>
  296. <id>build-native-lib</id>
  297. <configuration>
  298. <name>netty_transport_native_epoll_aarch_64</name>
  299. <nativeSourceDirectory>${nativeSourceDirectory}</nativeSourceDirectory>
  300. <libDirectory>${project.build.outputDirectory}</libDirectory>
  301. <!-- We use Maven's artifact classifier instead.
  302. This hack will make the hawtjni plugin to put the native library
  303. under 'META-INF/native' rather than 'META-INF/native/${platform}'. -->
  304. <platform>.</platform>
  305. <configureArgs>
  306. <arg>${jni.compiler.args.ldflags}</arg>
  307. <arg>${jni.compiler.args.libs}</arg>
  308. <arg>${jni.compiler.args.cflags}</arg>
  309. <configureArg>--libdir=${project.build.directory}/native-build/target/lib</configureArg>
  310. <configureArg>--host=aarch64-linux-gnu</configureArg>
  311. <configureArg>CC=aarch64-none-linux-gnu-gcc</configureArg>
  312. </configureArgs>
  313. </configuration>
  314. <goals>
  315. <goal>generate</goal>
  316. <goal>build</goal>
  317. </goals>
  318. </execution>
  319. </executions>
  320. </plugin>
  321. <plugin>
  322. <artifactId>maven-jar-plugin</artifactId>
  323. <executions>
  324. <!-- Generate the JAR that contains the native library in it. -->
  325. <execution>
  326. <id>native-jar</id>
  327. <goals>
  328. <goal>jar</goal>
  329. </goals>
  330. <configuration>
  331. <archive>
  332. <manifest>
  333. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  334. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  335. </manifest>
  336. <manifestEntries>
  337. <Bundle-NativeCode>META-INF/native/libnetty_transport_native_epoll_aarch_64.so; osname=Linux; processor=aarch64,*</Bundle-NativeCode>
  338. <Fragment-Host>io.netty.transport-classes-epoll</Fragment-Host>
  339. <Automatic-Module-Name>${javaModuleName}</Automatic-Module-Name>
  340. </manifestEntries>
  341. <index>true</index>
  342. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  343. </archive>
  344. <classifier>${jni.classifier}</classifier>
  345. </configuration>
  346. </execution>
  347. </executions>
  348. </plugin>
  349. </plugins>
  350. </build>
  351. <dependencies>
  352. <dependency>
  353. <groupId>io.netty</groupId>
  354. <artifactId>netty-transport-native-unix-common</artifactId>
  355. <version>${project.version}</version>
  356. <classifier>${jni.classifier}</classifier>
  357. <!--
  358. The unix-common with classifier dependency is optional because it is not a runtime dependency, but a build time
  359. dependency to get the static library which is built directly into the shared library generated by this project.
  360. -->
  361. <optional>true</optional>
  362. </dependency>
  363. </dependencies>
  364. </profile>
  365. <profile>
  366. <id>linux-riscv64</id>
  367. <properties>
  368. <!-- use riscv64 as this is also what os.detected.arch will use on an riscv64 system -->
  369. <jni.classifier>${os.detected.name}-riscv64</jni.classifier>
  370. <javaModuleNameClassifier>${os.detected.name}.riscv64</javaModuleNameClassifier>
  371. </properties>
  372. <build>
  373. <pluginManagement>
  374. <plugins>
  375. <plugin>
  376. <artifactId>maven-enforcer-plugin</artifactId>
  377. <version>3.0.0</version>
  378. <dependencies>
  379. <!-- Provides the 'requireFilesContent' enforcer rule. -->
  380. <dependency>
  381. <groupId>com.ceilfors.maven.plugin</groupId>
  382. <artifactId>enforcer-rules</artifactId>
  383. <version>1.2.0</version>
  384. </dependency>
  385. </dependencies>
  386. </plugin>
  387. </plugins>
  388. </pluginManagement>
  389. <plugins>
  390. <plugin>
  391. <artifactId>maven-enforcer-plugin</artifactId>
  392. <executions>
  393. <execution>
  394. <id>enforce-release-environment</id>
  395. <goals>
  396. <goal>enforce</goal>
  397. </goals>
  398. <configuration>
  399. <rules>
  400. <requireProperty>
  401. <regexMessage>
  402. Cross compile and Release process must be performed on linux-x86_64.
  403. </regexMessage>
  404. <property>os.detected.classifier</property>
  405. <regex>^linux-x86_64.*</regex>
  406. </requireProperty>
  407. <!--
  408. The toolchains for RISC-V are much more recent than for x86_64, and are
  409. unavailable on CentOS. We are then falling back to a Debian-based distribution
  410. that has access to recent enough toolchains; Ubuntu 20.04 is available on
  411. RISC-V and still has GLIBC 2.31
  412. -->
  413. <requireFilesContent>
  414. <message>
  415. Cross compile and Release process must be performed on Debian Bullseye or derivative
  416. </message>
  417. <files>
  418. <file>/etc/debian_version</file>
  419. </files>
  420. <content>bullseye/sid</content>
  421. </requireFilesContent>
  422. </rules>
  423. </configuration>
  424. </execution>
  425. </executions>
  426. </plugin>
  427. <plugin>
  428. <artifactId>maven-dependency-plugin</artifactId>
  429. <executions>
  430. <!-- unpack the unix-common static library and include files -->
  431. <execution>
  432. <id>unpack</id>
  433. <phase>generate-sources</phase>
  434. <goals>
  435. <goal>unpack-dependencies</goal>
  436. </goals>
  437. <configuration>
  438. <includeGroupIds>${project.groupId}</includeGroupIds>
  439. <includeArtifactIds>netty-transport-native-unix-common</includeArtifactIds>
  440. <classifier>${jni.classifier}</classifier>
  441. <outputDirectory>${unix.common.lib.dir}</outputDirectory>
  442. <includes>META-INF/native/**</includes>
  443. <overWriteReleases>false</overWriteReleases>
  444. <overWriteSnapshots>true</overWriteSnapshots>
  445. </configuration>
  446. </execution>
  447. </executions>
  448. </plugin>
  449. <plugin>
  450. <groupId>org.fusesource.hawtjni</groupId>
  451. <artifactId>hawtjni-maven-plugin</artifactId>
  452. <executions>
  453. <execution>
  454. <id>build-native-lib</id>
  455. <configuration>
  456. <name>netty_transport_native_epoll_riscv64</name>
  457. <nativeSourceDirectory>${nativeSourceDirectory}</nativeSourceDirectory>
  458. <libDirectory>${project.build.outputDirectory}</libDirectory>
  459. <!-- We use Maven's artifact classifier instead.
  460. This hack will make the hawtjni plugin to put the native library
  461. under 'META-INF/native' rather than 'META-INF/native/${platform}'. -->
  462. <platform>.</platform>
  463. <configureArgs>
  464. <arg>${jni.compiler.args.ldflags}</arg>
  465. <arg>${jni.compiler.args.libs}</arg>
  466. <arg>${jni.compiler.args.cflags}</arg>
  467. <configureArg>--libdir=${project.build.directory}/native-build/target/lib</configureArg>
  468. <configureArg>--host=riscv64-linux-gnu</configureArg>
  469. <configureArg>CC=riscv64-linux-gnu-gcc</configureArg>
  470. </configureArgs>
  471. </configuration>
  472. <goals>
  473. <goal>generate</goal>
  474. <goal>build</goal>
  475. </goals>
  476. </execution>
  477. </executions>
  478. </plugin>
  479. <plugin>
  480. <artifactId>maven-jar-plugin</artifactId>
  481. <executions>
  482. <!-- Generate the JAR that contains the native library in it. -->
  483. <execution>
  484. <id>native-jar</id>
  485. <goals>
  486. <goal>jar</goal>
  487. </goals>
  488. <configuration>
  489. <archive>
  490. <manifest>
  491. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  492. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  493. </manifest>
  494. <manifestEntries>
  495. <Bundle-NativeCode>META-INF/native/libnetty_transport_native_epoll_riscv64.so; osname=Linux; processor=riscv64,*</Bundle-NativeCode>
  496. <Fragment-Host>io.netty.transport-classes-epoll</Fragment-Host>
  497. <Automatic-Module-Name>${javaModuleName}</Automatic-Module-Name>
  498. </manifestEntries>
  499. <index>true</index>
  500. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  501. </archive>
  502. <classifier>${jni.classifier}</classifier>
  503. </configuration>
  504. </execution>
  505. </executions>
  506. </plugin>
  507. </plugins>
  508. </build>
  509. <dependencies>
  510. <dependency>
  511. <groupId>io.netty</groupId>
  512. <artifactId>netty-transport-native-unix-common</artifactId>
  513. <version>${project.version}</version>
  514. <classifier>${jni.classifier}</classifier>
  515. <!--
  516. The unix-common with classifier dependency is optional because it is not a runtime dependency, but a build time
  517. dependency to get the static library which is built directly into the shared library generated by this project.
  518. -->
  519. <optional>true</optional>
  520. </dependency>
  521. </dependencies>
  522. </profile>
  523. </profiles>
  524. <dependencies>
  525. <dependency>
  526. <groupId>io.netty</groupId>
  527. <artifactId>netty-common</artifactId>
  528. <version>${project.version}</version>
  529. </dependency>
  530. <dependency>
  531. <groupId>io.netty</groupId>
  532. <artifactId>netty-buffer</artifactId>
  533. <version>${project.version}</version>
  534. </dependency>
  535. <dependency>
  536. <groupId>io.netty</groupId>
  537. <artifactId>netty-transport</artifactId>
  538. <version>${project.version}</version>
  539. </dependency>
  540. <dependency>
  541. <groupId>io.netty</groupId>
  542. <artifactId>netty-transport-native-unix-common</artifactId>
  543. <version>${project.version}</version>
  544. </dependency>
  545. <dependency>
  546. <groupId>io.netty</groupId>
  547. <artifactId>netty-transport-classes-epoll</artifactId>
  548. <version>${project.version}</version>
  549. </dependency>
  550. <dependency>
  551. <groupId>io.netty</groupId>
  552. <artifactId>netty-testsuite</artifactId>
  553. <version>${project.version}</version>
  554. <scope>test</scope>
  555. </dependency>
  556. <dependency>
  557. <groupId>io.netty</groupId>
  558. <artifactId>netty-transport-native-unix-common-tests</artifactId>
  559. <version>${project.version}</version>
  560. <scope>test</scope>
  561. </dependency>
  562. <dependency>
  563. <groupId>${project.groupId}</groupId>
  564. <artifactId>${tcnative.artifactId}</artifactId>
  565. <classifier>${tcnative.classifier}</classifier>
  566. <scope>test</scope>
  567. </dependency>
  568. <dependency>
  569. <groupId>io.github.artsok</groupId>
  570. <artifactId>rerunner-jupiter</artifactId>
  571. <scope>test</scope>
  572. </dependency>
  573. <!-- For SelfSignedCertificate usage on JDK20+ -->
  574. <dependency>
  575. <groupId>org.bouncycastle</groupId>
  576. <artifactId>bcpkix-jdk15on</artifactId>
  577. <optional>true</optional>
  578. </dependency>
  579. </dependencies>
  580. <build>
  581. <plugins>
  582. <!-- Also include c files in source jar -->
  583. <plugin>
  584. <groupId>org.codehaus.mojo</groupId>
  585. <artifactId>build-helper-maven-plugin</artifactId>
  586. <executions>
  587. <execution>
  588. <phase>generate-sources</phase>
  589. <goals>
  590. <goal>add-source</goal>
  591. </goals>
  592. <configuration>
  593. <sources>
  594. <source>${nativeSourceDirectory}</source>
  595. </sources>
  596. </configuration>
  597. </execution>
  598. </executions>
  599. </plugin>
  600. <plugin>
  601. <artifactId>maven-jar-plugin</artifactId>
  602. <executions>
  603. <!-- We must generate a -javadoc JAR file to publish on Maven Central -->
  604. <execution>
  605. <id>empty-javadoc-jar</id>
  606. <phase>package</phase>
  607. <goals>
  608. <goal>jar</goal>
  609. </goals>
  610. <configuration>
  611. <classifier>javadoc</classifier>
  612. <classesDirectory>${basedir}/javadoc</classesDirectory>
  613. </configuration>
  614. </execution>
  615. <!-- Generate the fallback JAR that does not contain the native library. -->
  616. <execution>
  617. <id>default-jar</id>
  618. <configuration>
  619. <excludes>
  620. <exclude>META-INF/native/**</exclude>
  621. </excludes>
  622. </configuration>
  623. </execution>
  624. </executions>
  625. </plugin>
  626. </plugins>
  627. </build>
  628. </project>