pom.xml 47 KB

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