pom.xml 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  16. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.apache.hadoop</groupId>
  20. <artifactId>hadoop-project-dist</artifactId>
  21. <version>3.5.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-common</artifactId>
  25. <version>3.5.0-SNAPSHOT</version>
  26. <description>Apache Hadoop Common</description>
  27. <name>Apache Hadoop Common</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <hadoop.component>common</hadoop.component>
  31. <is.hadoop.component>true</is.hadoop.component>
  32. <is.hadoop.common.component>true</is.hadoop.common.component>
  33. <wsce.config.dir>../etc/hadoop</wsce.config.dir>
  34. <wsce.config.file>wsce-site.xml</wsce.config.file>
  35. </properties>
  36. <dependencies>
  37. <dependency>
  38. <groupId>org.apache.hadoop.thirdparty</groupId>
  39. <artifactId>hadoop-shaded-protobuf_3_25</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.hadoop</groupId>
  43. <artifactId>hadoop-annotations</artifactId>
  44. <scope>compile</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.hadoop.thirdparty</groupId>
  48. <artifactId>hadoop-shaded-guava</artifactId>
  49. </dependency>
  50. <!--Guava is required during runtime for curator-->
  51. <dependency>
  52. <groupId>com.google.guava</groupId>
  53. <artifactId>guava</artifactId>
  54. <scope>compile</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>commons-cli</groupId>
  58. <artifactId>commons-cli</artifactId>
  59. <scope>compile</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.commons</groupId>
  63. <artifactId>commons-math3</artifactId>
  64. <scope>compile</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.httpcomponents</groupId>
  68. <artifactId>httpclient</artifactId>
  69. <scope>compile</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>commons-codec</groupId>
  73. <artifactId>commons-codec</artifactId>
  74. <scope>compile</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>commons-io</groupId>
  78. <artifactId>commons-io</artifactId>
  79. <scope>compile</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>commons-net</groupId>
  83. <artifactId>commons-net</artifactId>
  84. <scope>compile</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.commons</groupId>
  88. <artifactId>commons-collections4</artifactId>
  89. <scope>compile</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>jakarta.servlet.jsp</groupId>
  93. <artifactId>jakarta.servlet.jsp-api</artifactId>
  94. <scope>compile</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>jakarta.ws.rs</groupId>
  98. <artifactId>jakarta.ws.rs-api</artifactId>
  99. <scope>compile</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.glassfish.jersey.core</groupId>
  103. <artifactId>jersey-server</artifactId>
  104. <scope>compile</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.glassfish.jersey.containers</groupId>
  108. <artifactId>jersey-container-servlet</artifactId>
  109. <exclusions>
  110. <exclusion>
  111. <groupId>javax.servlet</groupId>
  112. <artifactId>javax.servlet-api</artifactId>
  113. </exclusion>
  114. </exclusions>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.glassfish.jersey.inject</groupId>
  118. <artifactId>jersey-hk2</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>jakarta.activation</groupId>
  122. <artifactId>jakarta.activation-api</artifactId>
  123. <scope>runtime</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.eclipse.jetty</groupId>
  127. <artifactId>jetty-server</artifactId>
  128. <scope>compile</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.eclipse.jetty</groupId>
  132. <artifactId>jetty-util</artifactId>
  133. <scope>compile</scope>
  134. <exclusions>
  135. <exclusion>
  136. <artifactId>javax.servlet-api</artifactId>
  137. <groupId>javax.servlet</groupId>
  138. </exclusion>
  139. </exclusions>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.eclipse.jetty</groupId>
  143. <artifactId>jetty-servlet</artifactId>
  144. <scope>compile</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.eclipse.jetty</groupId>
  148. <artifactId>jetty-webapp</artifactId>
  149. <scope>compile</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.eclipse.jetty</groupId>
  153. <artifactId>jetty-util-ajax</artifactId>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>ch.qos.reload4j</groupId>
  158. <artifactId>reload4j</artifactId>
  159. <scope>compile</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>junit</groupId>
  163. <artifactId>junit</artifactId>
  164. <scope>test</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.assertj</groupId>
  168. <artifactId>assertj-core</artifactId>
  169. <scope>test</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.commons</groupId>
  173. <artifactId>commons-configuration2</artifactId>
  174. <scope>compile</scope>
  175. <exclusions>
  176. <exclusion>
  177. <groupId>javax.servlet</groupId>
  178. <artifactId>servlet-api</artifactId>
  179. </exclusion>
  180. </exclusions>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.apache.commons</groupId>
  184. <artifactId>commons-lang3</artifactId>
  185. <scope>compile</scope>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.apache.commons</groupId>
  189. <artifactId>commons-text</artifactId>
  190. <scope>compile</scope>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.slf4j</groupId>
  194. <artifactId>slf4j-api</artifactId>
  195. <scope>compile</scope>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.slf4j</groupId>
  199. <artifactId>slf4j-reload4j</artifactId>
  200. <scope>compile</scope>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.mockito</groupId>
  204. <artifactId>mockito-inline</artifactId>
  205. <scope>test</scope>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.mockito</groupId>
  209. <artifactId>mockito-junit-jupiter</artifactId>
  210. <scope>test</scope>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.apache.avro</groupId>
  214. <artifactId>avro</artifactId>
  215. <scope>compile</scope>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.apache.ant</groupId>
  219. <artifactId>ant</artifactId>
  220. <scope>test</scope>
  221. </dependency>
  222. <dependency>
  223. <groupId>com.google.re2j</groupId>
  224. <artifactId>re2j</artifactId>
  225. <scope>compile</scope>
  226. </dependency>
  227. <!-- Needed for compilation, though no longer in production. -->
  228. <dependency>
  229. <groupId>com.google.protobuf</groupId>
  230. <artifactId>protobuf-java</artifactId>
  231. <scope>${common.protobuf2.scope}</scope>
  232. </dependency>
  233. <dependency>
  234. <groupId>com.google.code.gson</groupId>
  235. <artifactId>gson</artifactId>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.apache.hadoop</groupId>
  239. <artifactId>hadoop-auth</artifactId>
  240. <scope>compile</scope>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.apache.hadoop</groupId>
  244. <artifactId>hadoop-auth</artifactId>
  245. <type>test-jar</type>
  246. <scope>test</scope>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.apache.hadoop</groupId>
  250. <artifactId>hadoop-minikdc</artifactId>
  251. <scope>test</scope>
  252. </dependency>
  253. <dependency>
  254. <groupId>com.jcraft</groupId>
  255. <artifactId>jsch</artifactId>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.apache.curator</groupId>
  259. <artifactId>curator-test</artifactId>
  260. <scope>test</scope>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.apache.curator</groupId>
  264. <artifactId>curator-client</artifactId>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.apache.curator</groupId>
  268. <artifactId>curator-recipes</artifactId>
  269. </dependency>
  270. <dependency>
  271. <groupId>com.google.code.findbugs</groupId>
  272. <artifactId>jsr305</artifactId>
  273. <scope>compile</scope>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.apache.sshd</groupId>
  277. <artifactId>sshd-core</artifactId>
  278. <scope>test</scope>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.apache.sshd</groupId>
  282. <artifactId>sshd-sftp</artifactId>
  283. <scope>test</scope>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.apache.ftpserver</groupId>
  287. <artifactId>ftpserver-core</artifactId>
  288. <scope>test</scope>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.apache.zookeeper</groupId>
  292. <artifactId>zookeeper</artifactId>
  293. </dependency>
  294. <dependency>
  295. <groupId>io.netty</groupId>
  296. <artifactId>netty-handler</artifactId>
  297. </dependency>
  298. <dependency>
  299. <groupId>io.netty</groupId>
  300. <artifactId>netty-transport-native-epoll</artifactId>
  301. </dependency>
  302. <dependency>
  303. <groupId>io.dropwizard.metrics</groupId>
  304. <artifactId>metrics-core</artifactId>
  305. </dependency>
  306. <dependency>
  307. <groupId>org.apache.zookeeper</groupId>
  308. <artifactId>zookeeper</artifactId>
  309. <type>test-jar</type>
  310. <scope>test</scope>
  311. </dependency>
  312. <dependency>
  313. <groupId>org.apache.commons</groupId>
  314. <artifactId>commons-compress</artifactId>
  315. </dependency>
  316. <dependency>
  317. <groupId>org.bouncycastle</groupId>
  318. <artifactId>bcprov-jdk18on</artifactId>
  319. </dependency>
  320. <dependency>
  321. <groupId>org.apache.kerby</groupId>
  322. <artifactId>kerb-core</artifactId>
  323. </dependency>
  324. <dependency>
  325. <groupId>com.fasterxml.jackson.core</groupId>
  326. <artifactId>jackson-databind</artifactId>
  327. </dependency>
  328. <dependency>
  329. <groupId>org.codehaus.woodstox</groupId>
  330. <artifactId>stax2-api</artifactId>
  331. <scope>compile</scope>
  332. </dependency>
  333. <dependency>
  334. <groupId>com.fasterxml.woodstox</groupId>
  335. <artifactId>woodstox-core</artifactId>
  336. <scope>compile</scope>
  337. </dependency>
  338. <dependency>
  339. <groupId>com.squareup.okhttp3</groupId>
  340. <artifactId>mockwebserver</artifactId>
  341. <scope>test</scope>
  342. </dependency>
  343. <dependency>
  344. <groupId>org.jetbrains.kotlin</groupId>
  345. <artifactId>kotlin-stdlib-jdk8</artifactId>
  346. <scope>test</scope>
  347. </dependency>
  348. <dependency>
  349. <groupId>dnsjava</groupId>
  350. <artifactId>dnsjava</artifactId>
  351. <scope>compile</scope>
  352. </dependency>
  353. <dependency>
  354. <groupId>org.wildfly.openssl</groupId>
  355. <artifactId>wildfly-openssl</artifactId>
  356. <scope>test</scope>
  357. </dependency>
  358. <dependency>
  359. <groupId>org.wildfly.openssl</groupId>
  360. <artifactId>wildfly-openssl-java</artifactId>
  361. <scope>provided</scope>
  362. </dependency>
  363. <dependency>
  364. <groupId>org.xerial.snappy</groupId>
  365. <artifactId>snappy-java</artifactId>
  366. <scope>compile</scope>
  367. </dependency>
  368. <dependency>
  369. <groupId>org.lz4</groupId>
  370. <artifactId>lz4-java</artifactId>
  371. <scope>provided</scope>
  372. </dependency>
  373. <dependency>
  374. <groupId>org.junit.jupiter</groupId>
  375. <artifactId>junit-jupiter-api</artifactId>
  376. <scope>test</scope>
  377. </dependency>
  378. <dependency>
  379. <groupId>org.junit.jupiter</groupId>
  380. <artifactId>junit-jupiter-engine</artifactId>
  381. <scope>test</scope>
  382. </dependency>
  383. <dependency>
  384. <groupId>org.junit.jupiter</groupId>
  385. <artifactId>junit-jupiter-params</artifactId>
  386. <scope>test</scope>
  387. </dependency>
  388. <dependency>
  389. <groupId>org.junit.platform</groupId>
  390. <artifactId>junit-platform-launcher</artifactId>
  391. <scope>test</scope>
  392. </dependency>
  393. </dependencies>
  394. <build>
  395. <!--
  396. Include all files in src/main/resources. By default, do not apply property
  397. substitution (filtering=false), but do apply property substitution to
  398. common-version-info.properties (filtering=true). This will substitute the
  399. version information correctly, but prevent Maven from altering other files
  400. like core-default.xml.
  401. -->
  402. <resources>
  403. <resource>
  404. <directory>${basedir}/src/main/resources</directory>
  405. <excludes>
  406. <exclude>common-version-info.properties</exclude>
  407. </excludes>
  408. <filtering>false</filtering>
  409. </resource>
  410. <resource>
  411. <directory>${basedir}/src/main/resources</directory>
  412. <includes>
  413. <include>common-version-info.properties</include>
  414. </includes>
  415. <filtering>true</filtering>
  416. </resource>
  417. </resources>
  418. <plugins>
  419. <plugin>
  420. <groupId>org.xolstice.maven.plugins</groupId>
  421. <artifactId>protobuf-maven-plugin</artifactId>
  422. <executions>
  423. <execution>
  424. <id>src-compile-protoc</id>
  425. <configuration>
  426. <skip>false</skip>
  427. <excludes>
  428. <exclude>ProtobufRpcEngine.proto</exclude>
  429. </excludes>
  430. </configuration>
  431. </execution>
  432. <execution>
  433. <id>src-test-compile-protoc</id>
  434. <configuration>
  435. <skip>false</skip>
  436. <excludes>
  437. <exclude>*legacy.proto</exclude>
  438. </excludes>
  439. </configuration>
  440. </execution>
  441. </executions>
  442. </plugin>
  443. <plugin>
  444. <groupId>com.google.code.maven-replacer-plugin</groupId>
  445. <artifactId>replacer</artifactId>
  446. <executions>
  447. <execution>
  448. <id>replace-generated-sources</id>
  449. <configuration>
  450. <skip>false</skip>
  451. <excludes>
  452. <exclude>**/ProtobufRpcEngineProtos.java</exclude>
  453. </excludes>
  454. </configuration>
  455. </execution>
  456. <execution>
  457. <id>replace-generated-test-sources</id>
  458. <configuration>
  459. <skip>false</skip>
  460. <excludes>
  461. <exclude>**/TestProtosLegacy.java</exclude>
  462. <exclude>**/TestRpcServiceProtosLegacy.java</exclude>
  463. </excludes>
  464. </configuration>
  465. </execution>
  466. <execution>
  467. <id>replace-sources</id>
  468. <configuration>
  469. <skip>false</skip>
  470. <!--These classes have direct Protobuf references for backward compatibility reasons-->
  471. <excludes>
  472. <exclude>**/ProtobufHelper.java</exclude>
  473. <exclude>**/ProtobufRpcEngineCallback.java</exclude>
  474. <exclude>**/ProtobufRpcEngine.java</exclude>
  475. <exclude>**/ProtobufRpcEngine2.java</exclude>
  476. <exclude>**/ProtobufRpcEngineProtos.java</exclude>
  477. <exclude>**/ProtobufWrapperLegacy.java</exclude>
  478. </excludes>
  479. </configuration>
  480. </execution>
  481. <execution>
  482. <id>replace-test-sources</id>
  483. <configuration>
  484. <skip>false</skip>
  485. <excludes>
  486. <exclude>**/TestProtoBufRpc.java</exclude>
  487. </excludes>
  488. </configuration>
  489. </execution>
  490. </executions>
  491. </plugin>
  492. <plugin>
  493. <groupId>org.apache.hadoop</groupId>
  494. <artifactId>hadoop-maven-plugins</artifactId>
  495. <executions>
  496. <execution>
  497. <id>version-info</id>
  498. <phase>generate-resources</phase>
  499. <goals>
  500. <goal>version-info</goal>
  501. </goals>
  502. <configuration>
  503. <source>
  504. <directory>${basedir}/src/main</directory>
  505. <includes>
  506. <include>java/**/*.java</include>
  507. <include>proto/**/*.proto</include>
  508. </includes>
  509. </source>
  510. </configuration>
  511. </execution>
  512. <execution>
  513. <id>resource-gz</id>
  514. <phase>generate-resources</phase>
  515. <goals>
  516. <goal>resource-gz</goal>
  517. </goals>
  518. <configuration>
  519. <inputDirectory>${basedir}/src/main/webapps/static</inputDirectory>
  520. <outputDirectory>${basedir}/target/webapps/static</outputDirectory>
  521. <extensions>js,css</extensions>
  522. </configuration>
  523. </execution>
  524. </executions>
  525. </plugin>
  526. <plugin>
  527. <groupId>org.apache.maven.plugins</groupId>
  528. <artifactId>maven-surefire-plugin</artifactId>
  529. <configuration>
  530. <systemPropertyVariables>
  531. <runningWithNative>${runningWithNative}</runningWithNative>
  532. </systemPropertyVariables>
  533. <properties>
  534. <property>
  535. <name>listener</name>
  536. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  537. </property>
  538. </properties>
  539. </configuration>
  540. </plugin>
  541. <plugin>
  542. <groupId>org.apache.avro</groupId>
  543. <artifactId>avro-maven-plugin</artifactId>
  544. <executions>
  545. <execution>
  546. <id>generate-avro-test-sources</id>
  547. <phase>generate-test-sources</phase>
  548. <goals>
  549. <goal>schema</goal>
  550. </goals>
  551. </execution>
  552. </executions>
  553. <configuration>
  554. <testOutputDirectory>${project.build.directory}/generated-test-sources/java</testOutputDirectory>
  555. </configuration>
  556. </plugin>
  557. <plugin>
  558. <groupId>org.apache.maven.plugins</groupId>
  559. <artifactId>maven-antrun-plugin</artifactId>
  560. <executions>
  561. <execution>
  562. <id>create-log-dir</id>
  563. <phase>process-test-resources</phase>
  564. <goals>
  565. <goal>run</goal>
  566. </goals>
  567. <configuration>
  568. <target>
  569. <!--
  570. TODO: there are tests (TestLocalFileSystem#testCopy) that fail if data
  571. TODO: from a previous run is present
  572. -->
  573. <delete dir="${test.build.data}"/>
  574. <mkdir dir="${test.build.data}"/>
  575. <mkdir dir="${hadoop.log.dir}"/>
  576. <copy toDir="${project.build.directory}/test-classes">
  577. <fileset dir="${basedir}/src/main/conf"/>
  578. </copy>
  579. </target>
  580. </configuration>
  581. </execution>
  582. <execution>
  583. <phase>pre-site</phase>
  584. <goals>
  585. <goal>run</goal>
  586. </goals>
  587. <configuration>
  588. <target>
  589. <copy file="src/main/resources/core-default.xml" todir="src/site/resources"/>
  590. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  591. </target>
  592. </configuration>
  593. </execution>
  594. </executions>
  595. </plugin>
  596. <plugin>
  597. <groupId>org.apache.rat</groupId>
  598. <artifactId>apache-rat-plugin</artifactId>
  599. <configuration>
  600. <excludes>
  601. <exclude>.idea/**</exclude>
  602. <exclude>src/main/conf/*</exclude>
  603. <exclude>dev-support/jdiff/**</exclude>
  604. <exclude>src/main/native/*</exclude>
  605. <exclude>src/main/native/config/*</exclude>
  606. <exclude>src/main/native/m4/*</exclude>
  607. <exclude>src/main/winutils/winutils.sln</exclude>
  608. <exclude>src/test/empty-file</exclude>
  609. <exclude>src/test/all-tests</exclude>
  610. <exclude>src/main/native/gtest/**/*</exclude>
  611. <exclude>src/test/resources/test-untar.tgz</exclude>
  612. <exclude>src/test/resources/test.har/_SUCCESS</exclude>
  613. <exclude>src/test/resources/test.har/_index</exclude>
  614. <exclude>src/test/resources/test.har/_masterindex</exclude>
  615. <exclude>src/test/resources/test.har/part-0</exclude>
  616. <exclude>src/test/resources/javakeystoreprovider.password</exclude>
  617. <exclude>src/test/resources/lz4/sequencefile</exclude>
  618. <exclude>dev-support/jdiff-workaround.patch</exclude>
  619. </excludes>
  620. </configuration>
  621. </plugin>
  622. <plugin>
  623. <groupId>org.codehaus.mojo</groupId>
  624. <artifactId>exec-maven-plugin</artifactId>
  625. <executions>
  626. <execution>
  627. <id>shelldocs</id>
  628. <phase>pre-site</phase>
  629. <goals>
  630. <goal>exec</goal>
  631. </goals>
  632. <configuration>
  633. <executable>${shell-executable}</executable>
  634. <workingDirectory>src/site/markdown</workingDirectory>
  635. <arguments>
  636. <argument>${basedir}/../../dev-support/bin/shelldocs</argument>
  637. <argument>--skipprnorep</argument>
  638. <argument>--output</argument>
  639. <argument>${basedir}/src/site/markdown/UnixShellAPI.md</argument>
  640. <argument>--input</argument>
  641. <argument>${basedir}/src/main/bin/hadoop-functions.sh</argument>
  642. </arguments>
  643. </configuration>
  644. </execution>
  645. </executions>
  646. </plugin>
  647. <plugin>
  648. <artifactId>maven-clean-plugin</artifactId>
  649. <configuration>
  650. <filesets>
  651. <fileset>
  652. <directory>src/site/markdown</directory>
  653. <includes>
  654. <include>UnixShellAPI.md</include>
  655. </includes>
  656. <followSymlinks>false</followSymlinks>
  657. </fileset>
  658. <fileset>
  659. <directory>src/site/resources</directory>
  660. <includes>
  661. <include>configuration.xsl</include>
  662. <include>core-default.xml</include>
  663. </includes>
  664. <followSymlinks>false</followSymlinks>
  665. </fileset>
  666. </filesets>
  667. </configuration>
  668. </plugin>
  669. <plugin>
  670. <groupId>org.apache.maven.plugins</groupId>
  671. <artifactId>maven-javadoc-plugin</artifactId>
  672. <configuration>
  673. <sourceFileExcludes>
  674. <sourceFileExclude>**/FSProtos.java</sourceFileExclude>
  675. </sourceFileExcludes>
  676. <excludePackageNames>*.proto:*.tracing:*.protobuf</excludePackageNames>
  677. </configuration>
  678. </plugin>
  679. </plugins>
  680. </build>
  681. <profiles>
  682. <profile>
  683. <id>native</id>
  684. <activation>
  685. <activeByDefault>false</activeByDefault>
  686. </activation>
  687. <properties>
  688. <require.bzip2>false</require.bzip2>
  689. <zstd.prefix></zstd.prefix>
  690. <zstd.lib></zstd.lib>
  691. <zstd.include></zstd.include>
  692. <require.zstd>false</require.zstd>
  693. <openssl.prefix></openssl.prefix>
  694. <openssl.lib></openssl.lib>
  695. <openssl.include></openssl.include>
  696. <require.isal>false</require.isal>
  697. <isal.prefix></isal.prefix>
  698. <isal.lib></isal.lib>
  699. <require.openssl>false</require.openssl>
  700. <runningWithNative>true</runningWithNative>
  701. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  702. <extra.libhadoop.rpath></extra.libhadoop.rpath>
  703. </properties>
  704. <build>
  705. <plugins>
  706. <plugin>
  707. <groupId>org.apache.maven.plugins</groupId>
  708. <artifactId>maven-enforcer-plugin</artifactId>
  709. <executions>
  710. <execution>
  711. <id>enforce-os</id>
  712. <goals>
  713. <goal>enforce</goal>
  714. </goals>
  715. <configuration>
  716. <rules>
  717. <requireOS>
  718. <family>mac</family>
  719. <family>unix</family>
  720. <message>native build only supported on Mac or Unix</message>
  721. </requireOS>
  722. </rules>
  723. <fail>true</fail>
  724. </configuration>
  725. </execution>
  726. </executions>
  727. </plugin>
  728. <plugin>
  729. <groupId>org.apache.hadoop</groupId>
  730. <artifactId>hadoop-maven-plugins</artifactId>
  731. <executions>
  732. <execution>
  733. <id>cmake-compile</id>
  734. <phase>compile</phase>
  735. <goals><goal>cmake-compile</goal></goals>
  736. <configuration>
  737. <source>${basedir}/src</source>
  738. <vars>
  739. <GENERATED_JAVAH>${project.build.directory}/native/javah</GENERATED_JAVAH>
  740. <JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>
  741. <REQUIRE_BZIP2>${require.bzip2}</REQUIRE_BZIP2>
  742. <REQUIRE_ZSTD>${require.zstd}</REQUIRE_ZSTD>
  743. <CUSTOM_ZSTD_PREFIX>${zstd.prefix}</CUSTOM_ZSTD_PREFIX>
  744. <CUSTOM_ZSTD_LIB>${zstd.lib} </CUSTOM_ZSTD_LIB>
  745. <CUSTOM_ZSTD_INCLUDE>${zstd.include} </CUSTOM_ZSTD_INCLUDE>
  746. <REQUIRE_ISAL>${require.isal} </REQUIRE_ISAL>
  747. <CUSTOM_ISAL_PREFIX>${isal.prefix} </CUSTOM_ISAL_PREFIX>
  748. <CUSTOM_ISAL_LIB>${isal.lib} </CUSTOM_ISAL_LIB>
  749. <REQUIRE_PMDK>${require.pmdk}</REQUIRE_PMDK>
  750. <CUSTOM_PMDK_LIB>${pmdk.lib}</CUSTOM_PMDK_LIB>
  751. <REQUIRE_OPENSSL>${require.openssl} </REQUIRE_OPENSSL>
  752. <CUSTOM_OPENSSL_PREFIX>${openssl.prefix} </CUSTOM_OPENSSL_PREFIX>
  753. <CUSTOM_OPENSSL_LIB>${openssl.lib} </CUSTOM_OPENSSL_LIB>
  754. <CUSTOM_OPENSSL_INCLUDE>${openssl.include} </CUSTOM_OPENSSL_INCLUDE>
  755. <EXTRA_LIBHADOOP_RPATH>${extra.libhadoop.rpath}</EXTRA_LIBHADOOP_RPATH>
  756. </vars>
  757. </configuration>
  758. </execution>
  759. <execution>
  760. <id>test_bulk_crc32</id>
  761. <goals><goal>cmake-test</goal></goals>
  762. <phase>test</phase>
  763. <configuration>
  764. <binary>${project.build.directory}/native/test_bulk_crc32</binary>
  765. <timeout>1200</timeout>
  766. <results>${project.build.directory}/native-results</results>
  767. </configuration>
  768. </execution>
  769. <execution>
  770. <id>erasure_code_test</id>
  771. <goals><goal>cmake-test</goal></goals>
  772. <phase>test</phase>
  773. <configuration>
  774. <binary>${project.build.directory}/native/erasure_code_test</binary>
  775. <timeout>300</timeout>
  776. <results>${project.build.directory}/native-results</results>
  777. <skipIfMissing>true</skipIfMissing>
  778. <env>
  779. <LD_LIBRARY_PATH>${LD_LIBRARY_PATH}:${isal.lib}:${isal.prefix}:/usr/lib</LD_LIBRARY_PATH>
  780. </env>
  781. </configuration>
  782. </execution>
  783. </executions>
  784. </plugin>
  785. </plugins>
  786. </build>
  787. </profile>
  788. <profile>
  789. <id>native-win</id>
  790. <activation>
  791. <os>
  792. <family>Windows</family>
  793. </os>
  794. </activation>
  795. <properties>
  796. <require.isal>false</require.isal>
  797. <isal.prefix></isal.prefix>
  798. <isal.lib></isal.lib>
  799. <zstd.prefix></zstd.prefix>
  800. <zstd.lib></zstd.lib>
  801. <zstd.include></zstd.include>
  802. <require.zstd>false</require.zstd>
  803. <bundle.zstd.in.bin>true</bundle.zstd.in.bin>
  804. <openssl.prefix></openssl.prefix>
  805. <openssl.lib></openssl.lib>
  806. <openssl.include></openssl.include>
  807. <require.openssl>false</require.openssl>
  808. <runningWithNative>true</runningWithNative>
  809. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  810. </properties>
  811. <build>
  812. <plugins>
  813. <plugin>
  814. <groupId>org.apache.maven.plugins</groupId>
  815. <artifactId>maven-enforcer-plugin</artifactId>
  816. <executions>
  817. <execution>
  818. <id>enforce-os</id>
  819. <goals>
  820. <goal>enforce</goal>
  821. </goals>
  822. <configuration>
  823. <rules>
  824. <requireOS>
  825. <family>windows</family>
  826. <message>native-win build only supported on Windows</message>
  827. </requireOS>
  828. </rules>
  829. <fail>true</fail>
  830. </configuration>
  831. </execution>
  832. </executions>
  833. </plugin>
  834. <plugin>
  835. <!--Sets the skip.platformToolsetDetection to true if use.platformToolsetVersion is specified.
  836. This implies that the automatic detection of which platform toolset to use will be skipped
  837. and the one specified with use.platformToolsetVersion will be used.-->
  838. <groupId>org.apache.maven.plugins</groupId>
  839. <artifactId>maven-antrun-plugin</artifactId>
  840. <version>1.8</version>
  841. <executions>
  842. <execution>
  843. <phase>validate</phase>
  844. <goals>
  845. <goal>run</goal>
  846. </goals>
  847. <configuration>
  848. <exportAntProperties>true</exportAntProperties>
  849. <target>
  850. <condition property="skip.platformToolsetDetection" value="true" else="false">
  851. <isset property="use.platformToolsetVersion"/>
  852. </condition>
  853. <!--Unfortunately, Maven doesn't have a way to negate a flag, thus we declare a
  854. property which holds the negated value of skip.platformToolsetDetection.-->
  855. <condition property="skip.platformToolsetDetection.negated" value="false" else="true">
  856. <isset property="use.platformToolsetVersion"/>
  857. </condition>
  858. <echo>Skip platform toolset version detection = ${skip.platformToolsetDetection}</echo>
  859. </target>
  860. </configuration>
  861. </execution>
  862. </executions>
  863. </plugin>
  864. <plugin>
  865. <groupId>org.codehaus.mojo</groupId>
  866. <artifactId>exec-maven-plugin</artifactId>
  867. <executions>
  868. <execution>
  869. <id>convert-ms-winutils</id>
  870. <phase>generate-sources</phase>
  871. <goals>
  872. <goal>exec</goal>
  873. </goals>
  874. <configuration>
  875. <skip>${skip.platformToolsetDetection}</skip>
  876. <executable>${basedir}\..\..\dev-support\bin\win-vs-upgrade.cmd</executable>
  877. <arguments>
  878. <argument>${basedir}\src\main\winutils</argument>
  879. <argument>${project.build.directory}</argument>
  880. </arguments>
  881. </configuration>
  882. </execution>
  883. <execution>
  884. <id>compile-ms-winutils</id>
  885. <phase>compile</phase>
  886. <goals>
  887. <goal>exec</goal>
  888. </goals>
  889. <configuration>
  890. <skip>${skip.platformToolsetDetection}</skip>
  891. <executable>msbuild</executable>
  892. <arguments>
  893. <argument>${basedir}/src/main/winutils/winutils.sln</argument>
  894. <argument>/nologo</argument>
  895. <argument>/p:Configuration=Release</argument>
  896. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  897. <argument>/p:IntermediateOutputPath=${project.build.directory}/winutils/</argument>
  898. <argument>/p:WsceConfigDir=${wsce.config.dir}</argument>
  899. <argument>/p:WsceConfigFile=${wsce.config.file}</argument>
  900. </arguments>
  901. </configuration>
  902. </execution>
  903. <execution>
  904. <id>compile-ms-winutils-using-build-tools</id>
  905. <phase>compile</phase>
  906. <goals>
  907. <goal>exec</goal>
  908. </goals>
  909. <configuration>
  910. <skip>${skip.platformToolsetDetection.negated}</skip>
  911. <executable>msbuild</executable>
  912. <arguments>
  913. <argument>${basedir}/src/main/winutils/winutils.sln</argument>
  914. <argument>/nologo</argument>
  915. <argument>/p:Configuration=Release</argument>
  916. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  917. <argument>/p:IntermediateOutputPath=${project.build.directory}/winutils/</argument>
  918. <argument>/p:WsceConfigDir=${wsce.config.dir}</argument>
  919. <argument>/p:WsceConfigFile=${wsce.config.file}</argument>
  920. <argument>/p:PlatformToolset=${use.platformToolsetVersion}</argument>
  921. </arguments>
  922. </configuration>
  923. </execution>
  924. <execution>
  925. <id>convert-ms-native-dll</id>
  926. <phase>generate-sources</phase>
  927. <goals>
  928. <goal>exec</goal>
  929. </goals>
  930. <configuration>
  931. <skip>${skip.platformToolsetDetection}</skip>
  932. <executable>${basedir}\..\..\dev-support\bin\win-vs-upgrade.cmd</executable>
  933. <arguments>
  934. <argument>${basedir}\src\main\native</argument>
  935. <argument>${project.build.directory}</argument>
  936. </arguments>
  937. </configuration>
  938. </execution>
  939. <execution>
  940. <id>compile-ms-native-dll</id>
  941. <phase>compile</phase>
  942. <goals>
  943. <goal>exec</goal>
  944. </goals>
  945. <configuration>
  946. <skip>${skip.platformToolsetDetection}</skip>
  947. <executable>msbuild</executable>
  948. <arguments>
  949. <argument>${basedir}/src/main/native/native.sln</argument>
  950. <argument>/nologo</argument>
  951. <argument>/p:Configuration=Release</argument>
  952. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  953. <argument>/p:CustomZstdPrefix=${zstd.prefix}</argument>
  954. <argument>/p:CustomZstdLib=${zstd.lib}</argument>
  955. <argument>/p:CustomZstdInclude=${zstd.include}</argument>
  956. <argument>/p:RequireZstd=${require.zstd}</argument>
  957. <argument>/p:CustomOpensslPrefix=${openssl.prefix}</argument>
  958. <argument>/p:CustomOpensslLib=${openssl.lib}</argument>
  959. <argument>/p:CustomOpensslInclude=${openssl.include}</argument>
  960. <argument>/p:RequireOpenssl=${require.openssl}</argument>
  961. <argument>/p:RequireIsal=${require.isal}</argument>
  962. <argument>/p:CustomIsalPrefix=${isal.prefix}</argument>
  963. <argument>/p:CustomIsalLib=${isal.lib}</argument>
  964. </arguments>
  965. </configuration>
  966. </execution>
  967. <execution>
  968. <id>compile-ms-native-dll-using-build-tools</id>
  969. <phase>compile</phase>
  970. <goals>
  971. <goal>exec</goal>
  972. </goals>
  973. <configuration>
  974. <skip>${skip.platformToolsetDetection.negated}</skip>
  975. <executable>msbuild</executable>
  976. <arguments>
  977. <argument>${basedir}/src/main/native/native.sln</argument>
  978. <argument>/nologo</argument>
  979. <argument>/p:Configuration=Release</argument>
  980. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  981. <argument>/p:CustomZstdPrefix=${zstd.prefix}</argument>
  982. <argument>/p:CustomZstdLib=${zstd.lib}</argument>
  983. <argument>/p:CustomZstdInclude=${zstd.include}</argument>
  984. <argument>/p:RequireZstd=${require.zstd}</argument>
  985. <argument>/p:CustomOpensslPrefix=${openssl.prefix}</argument>
  986. <argument>/p:CustomOpensslLib=${openssl.lib}</argument>
  987. <argument>/p:CustomOpensslInclude=${openssl.include}</argument>
  988. <argument>/p:RequireOpenssl=${require.openssl}</argument>
  989. <argument>/p:RequireIsal=${require.isal}</argument>
  990. <argument>/p:CustomIsalPrefix=${isal.prefix}</argument>
  991. <argument>/p:CustomIsalLib=${isal.lib}</argument>
  992. <argument>/p:PlatformToolset=${use.platformToolsetVersion}</argument>
  993. </arguments>
  994. </configuration>
  995. </execution>
  996. </executions>
  997. </plugin>
  998. </plugins>
  999. </build>
  1000. </profile>
  1001. <profile>
  1002. <id>parallel-tests</id>
  1003. <build>
  1004. <plugins>
  1005. <plugin>
  1006. <groupId>org.apache.hadoop</groupId>
  1007. <artifactId>hadoop-maven-plugins</artifactId>
  1008. <executions>
  1009. <execution>
  1010. <id>parallel-tests-createdir</id>
  1011. <phase>process-test-resources</phase>
  1012. <goals>
  1013. <goal>parallel-tests-createdir</goal>
  1014. </goals>
  1015. <configuration>
  1016. <testBuildData>${test.build.data}</testBuildData>
  1017. </configuration>
  1018. </execution>
  1019. </executions>
  1020. </plugin>
  1021. <plugin>
  1022. <groupId>org.apache.maven.plugins</groupId>
  1023. <artifactId>maven-surefire-plugin</artifactId>
  1024. <configuration>
  1025. <forkCount>${testsThreadCount}</forkCount>
  1026. <reuseForks>false</reuseForks>
  1027. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  1028. <systemPropertyVariables>
  1029. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  1030. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  1031. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  1032. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  1033. <!-- Due to a Maven quirk, setting this to just -->
  1034. <!-- surefire.forkNumber won't do the parameter substitution. -->
  1035. <!-- Putting a prefix in front of it like "fork-" makes it -->
  1036. <!-- work. -->
  1037. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  1038. </systemPropertyVariables>
  1039. </configuration>
  1040. </plugin>
  1041. </plugins>
  1042. </build>
  1043. </profile>
  1044. <profile>
  1045. <id>releasedocs</id>
  1046. <activation>
  1047. <activeByDefault>false</activeByDefault>
  1048. </activation>
  1049. <build>
  1050. <plugins>
  1051. <plugin>
  1052. <groupId>org.codehaus.mojo</groupId>
  1053. <artifactId>exec-maven-plugin</artifactId>
  1054. <executions>
  1055. <execution>
  1056. <id>releasedocs</id>
  1057. <phase>pre-site</phase>
  1058. <goals>
  1059. <goal>exec</goal>
  1060. </goals>
  1061. <configuration>
  1062. <executable>${shell-executable}</executable>
  1063. <arguments>
  1064. <argument>${basedir}/../../dev-support/bin/releasedocmaker</argument>
  1065. <argument>--index</argument>
  1066. <argument>--license</argument>
  1067. <argument>--outputdir</argument>
  1068. <argument>${basedir}/src/site/markdown/release</argument>
  1069. <argument>--project</argument>
  1070. <argument>HADOOP</argument>
  1071. <argument>--project</argument>
  1072. <argument>HDFS</argument>
  1073. <argument>--project</argument>
  1074. <argument>MAPREDUCE</argument>
  1075. <argument>--project</argument>
  1076. <argument>YARN</argument>
  1077. <argument>--projecttitle</argument>
  1078. <argument>Apache Hadoop</argument>
  1079. <argument>--usetoday</argument>
  1080. <argument>--fileversions</argument>
  1081. <argument>--dirversions</argument>
  1082. <argument>--version</argument>
  1083. <argument>${project.version}</argument>
  1084. </arguments>
  1085. </configuration>
  1086. </execution>
  1087. </executions>
  1088. </plugin>
  1089. <plugin>
  1090. <artifactId>maven-clean-plugin</artifactId>
  1091. <configuration>
  1092. <filesets>
  1093. <fileset>
  1094. <directory>src/site/markdown/release</directory>
  1095. <includes>
  1096. <include>${project.version}/</include>
  1097. <include>index.md</include>
  1098. </includes>
  1099. <followSymlinks>false</followSymlinks>
  1100. </fileset>
  1101. </filesets>
  1102. </configuration>
  1103. </plugin>
  1104. </plugins>
  1105. </build>
  1106. </profile>
  1107. <!-- profile to test shell code -->
  1108. <profile>
  1109. <id>shelltest</id>
  1110. <activation>
  1111. <property>
  1112. <name>!skipTests</name>
  1113. </property>
  1114. </activation>
  1115. <build>
  1116. <plugins>
  1117. <plugin>
  1118. <artifactId>maven-antrun-plugin</artifactId>
  1119. <executions>
  1120. <execution>
  1121. <id>common-test-bats-driver</id>
  1122. <phase>test</phase>
  1123. <goals>
  1124. <goal>run</goal>
  1125. </goals>
  1126. <configuration>
  1127. <target>
  1128. <exec dir="src/test/scripts"
  1129. executable="bash"
  1130. failonerror="true">
  1131. <arg value="./run-bats.sh" />
  1132. </exec>
  1133. </target>
  1134. </configuration>
  1135. </execution>
  1136. </executions>
  1137. </plugin>
  1138. </plugins>
  1139. </build>
  1140. </profile>
  1141. <!-- profile to use already generated protobuf code using 2.5.0 for aarch64-->
  1142. <profile>
  1143. <id>aarch64</id>
  1144. <activation>
  1145. <activeByDefault>false</activeByDefault>
  1146. <os>
  1147. <arch>aarch64</arch>
  1148. </os>
  1149. </activation>
  1150. <build>
  1151. <plugins>
  1152. <plugin>
  1153. <groupId>org.codehaus.mojo</groupId>
  1154. <artifactId>build-helper-maven-plugin</artifactId>
  1155. <executions>
  1156. <execution>
  1157. <id>add-source-legacy-protobuf</id>
  1158. <phase>generate-sources</phase>
  1159. <goals>
  1160. <goal>add-source</goal>
  1161. </goals>
  1162. <configuration>
  1163. <sources>
  1164. <source>${basedir}/src/main/arm-java</source>
  1165. </sources>
  1166. </configuration>
  1167. </execution>
  1168. <execution>
  1169. <id>add-test-source-legacy-protobuf</id>
  1170. <phase>generate-test-sources</phase>
  1171. <goals>
  1172. <goal>add-test-source</goal>
  1173. </goals>
  1174. <configuration>
  1175. <sources>
  1176. <source>${basedir}/src/test/arm-java</source>
  1177. </sources>
  1178. </configuration>
  1179. </execution>
  1180. </executions>
  1181. </plugin>
  1182. </plugins>
  1183. </build>
  1184. </profile>
  1185. <!-- profile to generate protobuf code using 2.5.0-->
  1186. <profile>
  1187. <id>x86_64</id>
  1188. <activation>
  1189. <activeByDefault>false</activeByDefault>
  1190. <os>
  1191. <arch>!aarch64</arch>
  1192. </os>
  1193. </activation>
  1194. <build>
  1195. <plugins>
  1196. <plugin>
  1197. <groupId>org.xolstice.maven.plugins</groupId>
  1198. <artifactId>protobuf-maven-plugin</artifactId>
  1199. <executions>
  1200. <execution>
  1201. <id>src-compile-protoc-legacy</id>
  1202. <phase>generate-sources</phase>
  1203. <goals>
  1204. <goal>compile</goal>
  1205. </goals>
  1206. <configuration>
  1207. <skip>false</skip>
  1208. <!--Generating with old protobuf version for backward compatibility-->
  1209. <protocArtifact>
  1210. com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  1211. </protocArtifact>
  1212. <includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
  1213. <protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
  1214. <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory>
  1215. <clearOutputDirectory>false</clearOutputDirectory>
  1216. <includes>
  1217. <include>ProtobufRpcEngine.proto</include>
  1218. </includes>
  1219. </configuration>
  1220. </execution>
  1221. <execution>
  1222. <id>src-test-compile-protoc-legacy</id>
  1223. <phase>generate-test-sources</phase>
  1224. <goals>
  1225. <goal>test-compile</goal>
  1226. </goals>
  1227. <configuration>
  1228. <skip>false</skip>
  1229. <!--Generating with old protobuf version for backward compatibility-->
  1230. <protocArtifact>
  1231. com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  1232. </protocArtifact>
  1233. <includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
  1234. <protoTestSourceRoot>${basedir}/src/test/proto</protoTestSourceRoot>
  1235. <outputDirectory>${project.build.directory}/generated-test-sources/java</outputDirectory>
  1236. <clearOutputDirectory>false</clearOutputDirectory>
  1237. <includes>
  1238. <include>test_legacy.proto</include>
  1239. <include>test_rpc_service_legacy.proto</include>
  1240. </includes>
  1241. </configuration>
  1242. </execution>
  1243. </executions>
  1244. </plugin>
  1245. </plugins>
  1246. </build>
  1247. </profile>
  1248. </profiles>
  1249. </project>