pom.xml 47 KB

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