pom.xml 47 KB

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