pom.xml.versionsBackup 48 KB

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