pom.xml 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102
  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. <javadoc.skip.jdk11>true</javadoc.skip.jdk11>
  36. </properties>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.apache.hadoop.thirdparty</groupId>
  40. <artifactId>hadoop-shaded-protobuf_3_7</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.apache.hadoop</groupId>
  44. <artifactId>hadoop-annotations</artifactId>
  45. <scope>compile</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.hadoop.thirdparty</groupId>
  49. <artifactId>hadoop-shaded-guava</artifactId>
  50. </dependency>
  51. <!--Guava is required during runtime for curator-->
  52. <dependency>
  53. <groupId>com.google.guava</groupId>
  54. <artifactId>guava</artifactId>
  55. <scope>compile</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>commons-cli</groupId>
  59. <artifactId>commons-cli</artifactId>
  60. <scope>compile</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.commons</groupId>
  64. <artifactId>commons-math3</artifactId>
  65. <scope>compile</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.httpcomponents</groupId>
  69. <artifactId>httpclient</artifactId>
  70. <scope>compile</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>commons-codec</groupId>
  74. <artifactId>commons-codec</artifactId>
  75. <scope>compile</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>commons-io</groupId>
  79. <artifactId>commons-io</artifactId>
  80. <scope>compile</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>commons-net</groupId>
  84. <artifactId>commons-net</artifactId>
  85. <scope>compile</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>commons-collections</groupId>
  89. <artifactId>commons-collections</artifactId>
  90. <scope>compile</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>javax.servlet</groupId>
  94. <artifactId>javax.servlet-api</artifactId>
  95. <scope>compile</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>jakarta.activation</groupId>
  99. <artifactId>jakarta.activation-api</artifactId>
  100. <scope>runtime</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.eclipse.jetty</groupId>
  104. <artifactId>jetty-server</artifactId>
  105. <scope>compile</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.eclipse.jetty</groupId>
  109. <artifactId>jetty-util</artifactId>
  110. <scope>compile</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.eclipse.jetty</groupId>
  114. <artifactId>jetty-servlet</artifactId>
  115. <scope>compile</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.eclipse.jetty</groupId>
  119. <artifactId>jetty-webapp</artifactId>
  120. <scope>compile</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.eclipse.jetty</groupId>
  124. <artifactId>jetty-util-ajax</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>javax.servlet.jsp</groupId>
  129. <artifactId>jsp-api</artifactId>
  130. <scope>runtime</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.sun.jersey</groupId>
  134. <artifactId>jersey-core</artifactId>
  135. <scope>compile</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.sun.jersey</groupId>
  139. <artifactId>jersey-servlet</artifactId>
  140. <scope>compile</scope>
  141. </dependency>
  142. <dependency>
  143. <!-- Used, even though 'mvn dependency:analyze' doesn't find it -->
  144. <groupId>com.sun.jersey</groupId>
  145. <artifactId>jersey-json</artifactId>
  146. <scope>compile</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.sun.jersey</groupId>
  150. <artifactId>jersey-server</artifactId>
  151. <scope>compile</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>commons-logging</groupId>
  155. <artifactId>commons-logging</artifactId>
  156. <scope>compile</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>log4j</groupId>
  160. <artifactId>log4j</artifactId>
  161. <scope>compile</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>junit</groupId>
  165. <artifactId>junit</artifactId>
  166. <scope>test</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.assertj</groupId>
  170. <artifactId>assertj-core</artifactId>
  171. <scope>test</scope>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.glassfish.grizzly</groupId>
  175. <artifactId>grizzly-http-servlet</artifactId>
  176. <scope>test</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>commons-beanutils</groupId>
  180. <artifactId>commons-beanutils</artifactId>
  181. <scope>compile</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.commons</groupId>
  185. <artifactId>commons-configuration2</artifactId>
  186. <scope>compile</scope>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.apache.commons</groupId>
  190. <artifactId>commons-lang3</artifactId>
  191. <scope>compile</scope>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.apache.commons</groupId>
  195. <artifactId>commons-text</artifactId>
  196. <scope>compile</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.slf4j</groupId>
  200. <artifactId>slf4j-api</artifactId>
  201. <scope>compile</scope>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.slf4j</groupId>
  205. <artifactId>slf4j-log4j12</artifactId>
  206. <scope>compile</scope>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.mockito</groupId>
  210. <artifactId>mockito-core</artifactId>
  211. <scope>test</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.apache.avro</groupId>
  215. <artifactId>avro</artifactId>
  216. <scope>compile</scope>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.apache.ant</groupId>
  220. <artifactId>ant</artifactId>
  221. <scope>test</scope>
  222. </dependency>
  223. <dependency>
  224. <groupId>com.google.re2j</groupId>
  225. <artifactId>re2j</artifactId>
  226. <scope>compile</scope>
  227. </dependency>
  228. <dependency>
  229. <groupId>com.google.protobuf</groupId>
  230. <artifactId>protobuf-java</artifactId>
  231. <scope>compile</scope>
  232. </dependency>
  233. <dependency>
  234. <groupId>com.google.code.gson</groupId>
  235. <artifactId>gson</artifactId>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.apache.hadoop</groupId>
  239. <artifactId>hadoop-auth</artifactId>
  240. <scope>compile</scope>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.apache.hadoop</groupId>
  244. <artifactId>hadoop-auth</artifactId>
  245. <type>test-jar</type>
  246. <scope>test</scope>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.apache.hadoop</groupId>
  250. <artifactId>hadoop-minikdc</artifactId>
  251. <scope>test</scope>
  252. </dependency>
  253. <dependency>
  254. <groupId>com.jcraft</groupId>
  255. <artifactId>jsch</artifactId>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.apache.curator</groupId>
  259. <artifactId>curator-test</artifactId>
  260. <scope>test</scope>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.apache.curator</groupId>
  264. <artifactId>curator-client</artifactId>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.apache.curator</groupId>
  268. <artifactId>curator-recipes</artifactId>
  269. </dependency>
  270. <dependency>
  271. <groupId>com.google.code.findbugs</groupId>
  272. <artifactId>jsr305</artifactId>
  273. <scope>compile</scope>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.apache.sshd</groupId>
  277. <artifactId>sshd-core</artifactId>
  278. <scope>test</scope>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.apache.ftpserver</groupId>
  282. <artifactId>ftpserver-core</artifactId>
  283. <scope>test</scope>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.apache.htrace</groupId>
  287. <artifactId>htrace-core4</artifactId>
  288. </dependency>
  289. <dependency>
  290. <groupId>org.apache.zookeeper</groupId>
  291. <artifactId>zookeeper</artifactId>
  292. <exclusions>
  293. <exclusion>
  294. <groupId>org.jboss.netty</groupId>
  295. <artifactId>netty</artifactId>
  296. </exclusion>
  297. <exclusion>
  298. <!-- otherwise seems to drag in junit 3.8.1 via jline -->
  299. <groupId>junit</groupId>
  300. <artifactId>junit</artifactId>
  301. </exclusion>
  302. <exclusion>
  303. <groupId>com.sun.jdmk</groupId>
  304. <artifactId>jmxtools</artifactId>
  305. </exclusion>
  306. <exclusion>
  307. <groupId>com.sun.jmx</groupId>
  308. <artifactId>jmxri</artifactId>
  309. </exclusion>
  310. </exclusions>
  311. </dependency>
  312. <dependency>
  313. <groupId>org.apache.zookeeper</groupId>
  314. <artifactId>zookeeper</artifactId>
  315. <type>test-jar</type>
  316. <scope>test</scope>
  317. </dependency>
  318. <dependency>
  319. <groupId>org.apache.commons</groupId>
  320. <artifactId>commons-compress</artifactId>
  321. </dependency>
  322. <dependency>
  323. <groupId>org.bouncycastle</groupId>
  324. <artifactId>bcprov-jdk15on</artifactId>
  325. </dependency>
  326. <dependency>
  327. <groupId>org.apache.kerby</groupId>
  328. <artifactId>kerb-core</artifactId>
  329. </dependency>
  330. <dependency>
  331. <groupId>com.fasterxml.jackson.core</groupId>
  332. <artifactId>jackson-databind</artifactId>
  333. </dependency>
  334. <dependency>
  335. <groupId>org.codehaus.woodstox</groupId>
  336. <artifactId>stax2-api</artifactId>
  337. <scope>compile</scope>
  338. </dependency>
  339. <dependency>
  340. <groupId>com.fasterxml.woodstox</groupId>
  341. <artifactId>woodstox-core</artifactId>
  342. <scope>compile</scope>
  343. </dependency>
  344. <dependency>
  345. <groupId>com.squareup.okhttp3</groupId>
  346. <artifactId>mockwebserver</artifactId>
  347. <scope>test</scope>
  348. </dependency>
  349. <dependency>
  350. <groupId>dnsjava</groupId>
  351. <artifactId>dnsjava</artifactId>
  352. <scope>compile</scope>
  353. </dependency>
  354. <dependency>
  355. <groupId>org.wildfly.openssl</groupId>
  356. <artifactId>wildfly-openssl</artifactId>
  357. <scope>test</scope>
  358. </dependency>
  359. <dependency>
  360. <groupId>org.wildfly.openssl</groupId>
  361. <artifactId>wildfly-openssl-java</artifactId>
  362. <scope>provided</scope>
  363. </dependency>
  364. <dependency>
  365. <groupId>org.xerial.snappy</groupId>
  366. <artifactId>snappy-java</artifactId>
  367. <scope>compile</scope>
  368. </dependency>
  369. </dependencies>
  370. <build>
  371. <!--
  372. Include all files in src/main/resources. By default, do not apply property
  373. substitution (filtering=false), but do apply property substitution to
  374. common-version-info.properties (filtering=true). This will substitute the
  375. version information correctly, but prevent Maven from altering other files
  376. like core-default.xml.
  377. -->
  378. <resources>
  379. <resource>
  380. <directory>${basedir}/src/main/resources</directory>
  381. <excludes>
  382. <exclude>common-version-info.properties</exclude>
  383. </excludes>
  384. <filtering>false</filtering>
  385. </resource>
  386. <resource>
  387. <directory>${basedir}/src/main/resources</directory>
  388. <includes>
  389. <include>common-version-info.properties</include>
  390. </includes>
  391. <filtering>true</filtering>
  392. </resource>
  393. </resources>
  394. <plugins>
  395. <plugin>
  396. <groupId>org.xolstice.maven.plugins</groupId>
  397. <artifactId>protobuf-maven-plugin</artifactId>
  398. <executions>
  399. <execution>
  400. <id>src-compile-protoc</id>
  401. <configuration>
  402. <skip>false</skip>
  403. <excludes>
  404. <exclude>ProtobufRpcEngine.proto</exclude>
  405. </excludes>
  406. </configuration>
  407. </execution>
  408. <execution>
  409. <id>src-test-compile-protoc</id>
  410. <configuration><skip>false</skip></configuration>
  411. </execution>
  412. </executions>
  413. </plugin>
  414. <plugin>
  415. <groupId>com.google.code.maven-replacer-plugin</groupId>
  416. <artifactId>replacer</artifactId>
  417. <executions>
  418. <execution>
  419. <id>replace-generated-sources</id>
  420. <configuration>
  421. <skip>false</skip>
  422. <excludes>
  423. <exclude>**/ProtobufRpcEngineProtos.java</exclude>
  424. </excludes>
  425. </configuration>
  426. </execution>
  427. <execution>
  428. <id>replace-generated-test-sources</id>
  429. <configuration>
  430. <skip>false</skip>
  431. </configuration>
  432. </execution>
  433. <execution>
  434. <id>replace-sources</id>
  435. <configuration>
  436. <skip>false</skip>
  437. <!--These classes have direct Protobuf references for backward compatibility reasons-->
  438. <excludes>
  439. <exclude>**/ProtobufHelper.java</exclude>
  440. <exclude>**/RpcWritable.java</exclude>
  441. <exclude>**/ProtobufRpcEngineCallback.java</exclude>
  442. <exclude>**/ProtobufRpcEngine.java</exclude>
  443. <exclude>**/ProtobufRpcEngineProtos.java</exclude>
  444. </excludes>
  445. </configuration>
  446. </execution>
  447. <execution>
  448. <id>replace-test-sources</id>
  449. <configuration>
  450. <skip>false</skip>
  451. </configuration>
  452. </execution>
  453. </executions>
  454. </plugin>
  455. <plugin>
  456. <groupId>org.apache.hadoop</groupId>
  457. <artifactId>hadoop-maven-plugins</artifactId>
  458. <executions>
  459. <execution>
  460. <id>version-info</id>
  461. <phase>generate-resources</phase>
  462. <goals>
  463. <goal>version-info</goal>
  464. </goals>
  465. <configuration>
  466. <source>
  467. <directory>${basedir}/src/main</directory>
  468. <includes>
  469. <include>java/**/*.java</include>
  470. <include>proto/**/*.proto</include>
  471. </includes>
  472. </source>
  473. </configuration>
  474. </execution>
  475. <execution>
  476. <id>resource-gz</id>
  477. <phase>generate-resources</phase>
  478. <goals>
  479. <goal>resource-gz</goal>
  480. </goals>
  481. <configuration>
  482. <inputDirectory>${basedir}/src/main/webapps/static</inputDirectory>
  483. <outputDirectory>${basedir}/target/webapps/static</outputDirectory>
  484. <extensions>js,css</extensions>
  485. </configuration>
  486. </execution>
  487. </executions>
  488. </plugin>
  489. <plugin>
  490. <groupId>org.apache.maven.plugins</groupId>
  491. <artifactId>maven-surefire-plugin</artifactId>
  492. <configuration>
  493. <systemPropertyVariables>
  494. <runningWithNative>${runningWithNative}</runningWithNative>
  495. </systemPropertyVariables>
  496. <properties>
  497. <property>
  498. <name>listener</name>
  499. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  500. </property>
  501. </properties>
  502. </configuration>
  503. </plugin>
  504. <plugin>
  505. <groupId>org.apache.avro</groupId>
  506. <artifactId>avro-maven-plugin</artifactId>
  507. <executions>
  508. <execution>
  509. <id>generate-avro-test-sources</id>
  510. <phase>generate-test-sources</phase>
  511. <goals>
  512. <goal>schema</goal>
  513. </goals>
  514. </execution>
  515. </executions>
  516. <configuration>
  517. <testOutputDirectory>${project.build.directory}/generated-test-sources/java</testOutputDirectory>
  518. </configuration>
  519. </plugin>
  520. <plugin>
  521. <groupId>org.apache.maven.plugins</groupId>
  522. <artifactId>maven-antrun-plugin</artifactId>
  523. <executions>
  524. <execution>
  525. <id>create-log-dir</id>
  526. <phase>process-test-resources</phase>
  527. <goals>
  528. <goal>run</goal>
  529. </goals>
  530. <configuration>
  531. <target>
  532. <!--
  533. TODO: there are tests (TestLocalFileSystem#testCopy) that fail if data
  534. TODO: from a previous run is present
  535. -->
  536. <delete dir="${test.build.data}"/>
  537. <mkdir dir="${test.build.data}"/>
  538. <mkdir dir="${hadoop.log.dir}"/>
  539. <copy toDir="${project.build.directory}/test-classes">
  540. <fileset dir="${basedir}/src/main/conf"/>
  541. </copy>
  542. </target>
  543. </configuration>
  544. </execution>
  545. <execution>
  546. <phase>pre-site</phase>
  547. <goals>
  548. <goal>run</goal>
  549. </goals>
  550. <configuration>
  551. <target>
  552. <copy file="src/main/resources/core-default.xml" todir="src/site/resources"/>
  553. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  554. </target>
  555. </configuration>
  556. </execution>
  557. </executions>
  558. </plugin>
  559. <plugin>
  560. <groupId>org.apache.rat</groupId>
  561. <artifactId>apache-rat-plugin</artifactId>
  562. <configuration>
  563. <excludes>
  564. <exclude>.idea/**</exclude>
  565. <exclude>src/main/conf/*</exclude>
  566. <exclude>dev-support/jdiff/**</exclude>
  567. <exclude>src/main/native/*</exclude>
  568. <exclude>src/main/native/config/*</exclude>
  569. <exclude>src/main/native/m4/*</exclude>
  570. <exclude>src/test/empty-file</exclude>
  571. <exclude>src/test/all-tests</exclude>
  572. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.h</exclude>
  573. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.c</exclude>
  574. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4hc.h</exclude>
  575. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4hc.c</exclude>
  576. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4hc_encoder.h</exclude>
  577. <exclude>src/main/native/gtest/**/*</exclude>
  578. <exclude>src/test/resources/test-untar.tgz</exclude>
  579. <exclude>src/test/resources/test.har/_SUCCESS</exclude>
  580. <exclude>src/test/resources/test.har/_index</exclude>
  581. <exclude>src/test/resources/test.har/_masterindex</exclude>
  582. <exclude>src/test/resources/test.har/part-0</exclude>
  583. <exclude>src/test/resources/javakeystoreprovider.password</exclude>
  584. <exclude>dev-support/jdiff-workaround.patch</exclude>
  585. </excludes>
  586. </configuration>
  587. </plugin>
  588. <plugin>
  589. <groupId>org.codehaus.mojo</groupId>
  590. <artifactId>exec-maven-plugin</artifactId>
  591. <executions>
  592. <execution>
  593. <id>shelldocs</id>
  594. <phase>pre-site</phase>
  595. <goals>
  596. <goal>exec</goal>
  597. </goals>
  598. <configuration>
  599. <executable>${basedir}/../../dev-support/bin/shelldocs</executable>
  600. <workingDirectory>src/site/markdown</workingDirectory>
  601. <arguments>
  602. <argument>--skipprnorep</argument>
  603. <argument>--output</argument>
  604. <argument>${basedir}/src/site/markdown/UnixShellAPI.md</argument>
  605. <argument>--input</argument>
  606. <argument>${basedir}/src/main/bin/hadoop-functions.sh</argument>
  607. </arguments>
  608. </configuration>
  609. </execution>
  610. </executions>
  611. </plugin>
  612. <plugin>
  613. <artifactId>maven-clean-plugin</artifactId>
  614. <configuration>
  615. <filesets>
  616. <fileset>
  617. <directory>src/site/markdown</directory>
  618. <includes>
  619. <include>UnixShellAPI.md</include>
  620. </includes>
  621. <followSymlinks>false</followSymlinks>
  622. </fileset>
  623. <fileset>
  624. <directory>src/site/resources</directory>
  625. <includes>
  626. <include>configuration.xsl</include>
  627. <include>core-default.xml</include>
  628. </includes>
  629. <followSymlinks>false</followSymlinks>
  630. </fileset>
  631. </filesets>
  632. </configuration>
  633. </plugin>
  634. </plugins>
  635. </build>
  636. <profiles>
  637. <profile>
  638. <id>native</id>
  639. <activation>
  640. <activeByDefault>false</activeByDefault>
  641. </activation>
  642. <properties>
  643. <require.bzip2>false</require.bzip2>
  644. <zstd.prefix></zstd.prefix>
  645. <zstd.lib></zstd.lib>
  646. <zstd.include></zstd.include>
  647. <require.zstd>false</require.zstd>
  648. <openssl.prefix></openssl.prefix>
  649. <openssl.lib></openssl.lib>
  650. <openssl.include></openssl.include>
  651. <require.isal>false</require.isal>
  652. <isal.prefix></isal.prefix>
  653. <isal.lib></isal.lib>
  654. <require.openssl>false</require.openssl>
  655. <runningWithNative>true</runningWithNative>
  656. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  657. <extra.libhadoop.rpath></extra.libhadoop.rpath>
  658. </properties>
  659. <build>
  660. <plugins>
  661. <plugin>
  662. <groupId>org.apache.maven.plugins</groupId>
  663. <artifactId>maven-enforcer-plugin</artifactId>
  664. <executions>
  665. <execution>
  666. <id>enforce-os</id>
  667. <goals>
  668. <goal>enforce</goal>
  669. </goals>
  670. <configuration>
  671. <rules>
  672. <requireOS>
  673. <family>mac</family>
  674. <family>unix</family>
  675. <message>native build only supported on Mac or Unix</message>
  676. </requireOS>
  677. </rules>
  678. <fail>true</fail>
  679. </configuration>
  680. </execution>
  681. </executions>
  682. </plugin>
  683. <plugin>
  684. <groupId>org.apache.hadoop</groupId>
  685. <artifactId>hadoop-maven-plugins</artifactId>
  686. <executions>
  687. <execution>
  688. <id>cmake-compile</id>
  689. <phase>compile</phase>
  690. <goals><goal>cmake-compile</goal></goals>
  691. <configuration>
  692. <source>${basedir}/src</source>
  693. <vars>
  694. <GENERATED_JAVAH>${project.build.directory}/native/javah</GENERATED_JAVAH>
  695. <JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>
  696. <REQUIRE_BZIP2>${require.bzip2}</REQUIRE_BZIP2>
  697. <REQUIRE_ZSTD>${require.zstd}</REQUIRE_ZSTD>
  698. <CUSTOM_ZSTD_PREFIX>${zstd.prefix}</CUSTOM_ZSTD_PREFIX>
  699. <CUSTOM_ZSTD_LIB>${zstd.lib} </CUSTOM_ZSTD_LIB>
  700. <CUSTOM_ZSTD_INCLUDE>${zstd.include} </CUSTOM_ZSTD_INCLUDE>
  701. <REQUIRE_ISAL>${require.isal} </REQUIRE_ISAL>
  702. <CUSTOM_ISAL_PREFIX>${isal.prefix} </CUSTOM_ISAL_PREFIX>
  703. <CUSTOM_ISAL_LIB>${isal.lib} </CUSTOM_ISAL_LIB>
  704. <REQUIRE_PMDK>${require.pmdk}</REQUIRE_PMDK>
  705. <CUSTOM_PMDK_LIB>${pmdk.lib}</CUSTOM_PMDK_LIB>
  706. <REQUIRE_OPENSSL>${require.openssl} </REQUIRE_OPENSSL>
  707. <CUSTOM_OPENSSL_PREFIX>${openssl.prefix} </CUSTOM_OPENSSL_PREFIX>
  708. <CUSTOM_OPENSSL_LIB>${openssl.lib} </CUSTOM_OPENSSL_LIB>
  709. <CUSTOM_OPENSSL_INCLUDE>${openssl.include} </CUSTOM_OPENSSL_INCLUDE>
  710. <EXTRA_LIBHADOOP_RPATH>${extra.libhadoop.rpath}</EXTRA_LIBHADOOP_RPATH>
  711. </vars>
  712. </configuration>
  713. </execution>
  714. <execution>
  715. <id>test_bulk_crc32</id>
  716. <goals><goal>cmake-test</goal></goals>
  717. <phase>test</phase>
  718. <configuration>
  719. <binary>${project.build.directory}/native/test_bulk_crc32</binary>
  720. <timeout>1200</timeout>
  721. <results>${project.build.directory}/native-results</results>
  722. </configuration>
  723. </execution>
  724. <execution>
  725. <id>erasure_code_test</id>
  726. <goals><goal>cmake-test</goal></goals>
  727. <phase>test</phase>
  728. <configuration>
  729. <binary>${project.build.directory}/native/erasure_code_test</binary>
  730. <timeout>300</timeout>
  731. <results>${project.build.directory}/native-results</results>
  732. <skipIfMissing>true</skipIfMissing>
  733. <env>
  734. <LD_LIBRARY_PATH>${LD_LIBRARY_PATH}:${isal.lib}:${isal.prefix}:/usr/lib</LD_LIBRARY_PATH>
  735. </env>
  736. </configuration>
  737. </execution>
  738. </executions>
  739. </plugin>
  740. </plugins>
  741. </build>
  742. </profile>
  743. <profile>
  744. <id>native-win</id>
  745. <activation>
  746. <os>
  747. <family>Windows</family>
  748. </os>
  749. </activation>
  750. <properties>
  751. <require.isal>false</require.isal>
  752. <isal.prefix></isal.prefix>
  753. <isal.lib></isal.lib>
  754. <zstd.prefix></zstd.prefix>
  755. <zstd.lib></zstd.lib>
  756. <zstd.include></zstd.include>
  757. <require.zstd>false</require.zstd>
  758. <bundle.zstd.in.bin>true</bundle.zstd.in.bin>
  759. <openssl.prefix></openssl.prefix>
  760. <openssl.lib></openssl.lib>
  761. <openssl.include></openssl.include>
  762. <require.openssl>false</require.openssl>
  763. <runningWithNative>true</runningWithNative>
  764. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  765. </properties>
  766. <build>
  767. <plugins>
  768. <plugin>
  769. <groupId>org.apache.maven.plugins</groupId>
  770. <artifactId>maven-enforcer-plugin</artifactId>
  771. <executions>
  772. <execution>
  773. <id>enforce-os</id>
  774. <goals>
  775. <goal>enforce</goal>
  776. </goals>
  777. <configuration>
  778. <rules>
  779. <requireOS>
  780. <family>windows</family>
  781. <message>native-win build only supported on Windows</message>
  782. </requireOS>
  783. </rules>
  784. <fail>true</fail>
  785. </configuration>
  786. </execution>
  787. </executions>
  788. </plugin>
  789. <plugin>
  790. <groupId>org.codehaus.mojo</groupId>
  791. <artifactId>exec-maven-plugin</artifactId>
  792. <executions>
  793. <execution>
  794. <id>convert-ms-winutils</id>
  795. <phase>generate-sources</phase>
  796. <goals>
  797. <goal>exec</goal>
  798. </goals>
  799. <configuration>
  800. <executable>${basedir}\..\..\dev-support\bin\win-vs-upgrade.cmd</executable>
  801. <arguments>
  802. <argument>${basedir}\src\main\winutils</argument>
  803. <argument>${project.build.directory}</argument>
  804. </arguments>
  805. </configuration>
  806. </execution>
  807. <execution>
  808. <id>compile-ms-winutils</id>
  809. <phase>compile</phase>
  810. <goals>
  811. <goal>exec</goal>
  812. </goals>
  813. <configuration>
  814. <executable>msbuild</executable>
  815. <arguments>
  816. <argument>${basedir}/src/main/winutils/winutils.sln</argument>
  817. <argument>/nologo</argument>
  818. <argument>/p:Configuration=Release</argument>
  819. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  820. <argument>/p:IntermediateOutputPath=${project.build.directory}/winutils/</argument>
  821. <argument>/p:WsceConfigDir=${wsce.config.dir}</argument>
  822. <argument>/p:WsceConfigFile=${wsce.config.file}</argument>
  823. </arguments>
  824. </configuration>
  825. </execution>
  826. <execution>
  827. <id>convert-ms-native-dll</id>
  828. <phase>generate-sources</phase>
  829. <goals>
  830. <goal>exec</goal>
  831. </goals>
  832. <configuration>
  833. <executable>${basedir}\..\..\dev-support\bin\win-vs-upgrade.cmd</executable>
  834. <arguments>
  835. <argument>${basedir}\src\main\native</argument>
  836. <argument>${project.build.directory}</argument>
  837. </arguments>
  838. </configuration>
  839. </execution>
  840. <execution>
  841. <id>compile-ms-native-dll</id>
  842. <phase>compile</phase>
  843. <goals>
  844. <goal>exec</goal>
  845. </goals>
  846. <configuration>
  847. <executable>msbuild</executable>
  848. <arguments>
  849. <argument>${basedir}/src/main/native/native.sln</argument>
  850. <argument>/nologo</argument>
  851. <argument>/p:Configuration=Release</argument>
  852. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  853. <argument>/p:CustomZstdPrefix=${zstd.prefix}</argument>
  854. <argument>/p:CustomZstdLib=${zstd.lib}</argument>
  855. <argument>/p:CustomZstdInclude=${zstd.include}</argument>
  856. <argument>/p:RequireZstd=${require.zstd}</argument>
  857. <argument>/p:CustomOpensslPrefix=${openssl.prefix}</argument>
  858. <argument>/p:CustomOpensslLib=${openssl.lib}</argument>
  859. <argument>/p:CustomOpensslInclude=${openssl.include}</argument>
  860. <argument>/p:RequireOpenssl=${require.openssl}</argument>
  861. <argument>/p:RequireIsal=${require.isal}</argument>
  862. <argument>/p:CustomIsalPrefix=${isal.prefix}</argument>
  863. <argument>/p:CustomIsalLib=${isal.lib}</argument>
  864. </arguments>
  865. </configuration>
  866. </execution>
  867. </executions>
  868. </plugin>
  869. </plugins>
  870. </build>
  871. </profile>
  872. <profile>
  873. <id>parallel-tests</id>
  874. <build>
  875. <plugins>
  876. <plugin>
  877. <groupId>org.apache.hadoop</groupId>
  878. <artifactId>hadoop-maven-plugins</artifactId>
  879. <executions>
  880. <execution>
  881. <id>parallel-tests-createdir</id>
  882. <phase>process-test-resources</phase>
  883. <goals>
  884. <goal>parallel-tests-createdir</goal>
  885. </goals>
  886. <configuration>
  887. <testBuildData>${test.build.data}</testBuildData>
  888. </configuration>
  889. </execution>
  890. </executions>
  891. </plugin>
  892. <plugin>
  893. <groupId>org.apache.maven.plugins</groupId>
  894. <artifactId>maven-surefire-plugin</artifactId>
  895. <configuration>
  896. <testFailureIgnore>${ignoreTestFailure}</testFailureIgnore>
  897. <forkCount>${testsThreadCount}</forkCount>
  898. <reuseForks>false</reuseForks>
  899. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  900. <systemPropertyVariables>
  901. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  902. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  903. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  904. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  905. <!-- Due to a Maven quirk, setting this to just -->
  906. <!-- surefire.forkNumber won't do the parameter substitution. -->
  907. <!-- Putting a prefix in front of it like "fork-" makes it -->
  908. <!-- work. -->
  909. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  910. </systemPropertyVariables>
  911. </configuration>
  912. </plugin>
  913. </plugins>
  914. </build>
  915. </profile>
  916. <profile>
  917. <id>releasedocs</id>
  918. <activation>
  919. <activeByDefault>false</activeByDefault>
  920. </activation>
  921. <build>
  922. <plugins>
  923. <plugin>
  924. <groupId>org.codehaus.mojo</groupId>
  925. <artifactId>exec-maven-plugin</artifactId>
  926. <executions>
  927. <execution>
  928. <id>releasedocs</id>
  929. <phase>pre-site</phase>
  930. <goals>
  931. <goal>exec</goal>
  932. </goals>
  933. <configuration>
  934. <executable>${basedir}/../../dev-support/bin/releasedocmaker</executable>
  935. <requiresOnline>true</requiresOnline>
  936. <arguments>
  937. <argument>--index</argument>
  938. <argument>--license</argument>
  939. <argument>--outputdir</argument>
  940. <argument>${basedir}/src/site/markdown/release</argument>
  941. <argument>--project</argument>
  942. <argument>HADOOP</argument>
  943. <argument>--project</argument>
  944. <argument>HDFS</argument>
  945. <argument>--project</argument>
  946. <argument>MAPREDUCE</argument>
  947. <argument>--project</argument>
  948. <argument>YARN</argument>
  949. <argument>--projecttitle</argument>
  950. <argument>Apache Hadoop</argument>
  951. <argument>--usetoday</argument>
  952. <argument>--fileversions</argument>
  953. <argument>--dirversions</argument>
  954. <argument>--version</argument>
  955. <argument>${project.version}</argument>
  956. </arguments>
  957. </configuration>
  958. </execution>
  959. </executions>
  960. </plugin>
  961. <plugin>
  962. <artifactId>maven-clean-plugin</artifactId>
  963. <configuration>
  964. <filesets>
  965. <fileset>
  966. <directory>src/site/markdown/release</directory>
  967. <includes>
  968. <include>${project.version}/</include>
  969. <include>index.md</include>
  970. </includes>
  971. <followSymlinks>false</followSymlinks>
  972. </fileset>
  973. </filesets>
  974. </configuration>
  975. </plugin>
  976. </plugins>
  977. </build>
  978. </profile>
  979. <!-- profile to test shell code -->
  980. <profile>
  981. <id>shelltest</id>
  982. <activation>
  983. <property>
  984. <name>!skipTests</name>
  985. </property>
  986. </activation>
  987. <build>
  988. <plugins>
  989. <plugin>
  990. <artifactId>maven-antrun-plugin</artifactId>
  991. <executions>
  992. <execution>
  993. <id>common-test-bats-driver</id>
  994. <phase>test</phase>
  995. <goals>
  996. <goal>run</goal>
  997. </goals>
  998. <configuration>
  999. <target>
  1000. <exec dir="src/test/scripts"
  1001. executable="bash"
  1002. failonerror="true">
  1003. <arg value="./run-bats.sh" />
  1004. </exec>
  1005. </target>
  1006. </configuration>
  1007. </execution>
  1008. </executions>
  1009. </plugin>
  1010. </plugins>
  1011. </build>
  1012. </profile>
  1013. <!-- profile to use already generated protobuf code using 2.5.0 for aarch64-->
  1014. <profile>
  1015. <id>aarch64</id>
  1016. <activation>
  1017. <activeByDefault>false</activeByDefault>
  1018. <os>
  1019. <arch>aarch64</arch>
  1020. </os>
  1021. </activation>
  1022. <build>
  1023. <plugins>
  1024. <plugin>
  1025. <groupId>org.codehaus.mojo</groupId>
  1026. <artifactId>build-helper-maven-plugin</artifactId>
  1027. <executions>
  1028. <execution>
  1029. <id>add-source-legacy-protobuf</id>
  1030. <phase>generate-sources</phase>
  1031. <goals>
  1032. <goal>add-source</goal>
  1033. </goals>
  1034. <configuration>
  1035. <sources>
  1036. <source>${basedir}/src/main/arm-java</source>
  1037. </sources>
  1038. </configuration>
  1039. </execution>
  1040. </executions>
  1041. </plugin>
  1042. </plugins>
  1043. </build>
  1044. </profile>
  1045. <!-- profile to generate protobuf code using 2.5.0-->
  1046. <profile>
  1047. <id>x86_64</id>
  1048. <activation>
  1049. <activeByDefault>false</activeByDefault>
  1050. <os>
  1051. <arch>!aarch64</arch>
  1052. </os>
  1053. </activation>
  1054. <build>
  1055. <plugins>
  1056. <plugin>
  1057. <groupId>org.xolstice.maven.plugins</groupId>
  1058. <artifactId>protobuf-maven-plugin</artifactId>
  1059. <executions>
  1060. <execution>
  1061. <id>src-compile-protoc-legacy</id>
  1062. <phase>generate-sources</phase>
  1063. <goals>
  1064. <goal>compile</goal>
  1065. </goals>
  1066. <configuration>
  1067. <skip>false</skip>
  1068. <!--Generating with old protobuf version for backward compatibility-->
  1069. <protocArtifact>
  1070. com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  1071. </protocArtifact>
  1072. <includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
  1073. <protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
  1074. <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory>
  1075. <clearOutputDirectory>false</clearOutputDirectory>
  1076. <includes>
  1077. <include>ProtobufRpcEngine.proto</include>
  1078. </includes>
  1079. </configuration>
  1080. </execution>
  1081. </executions>
  1082. </plugin>
  1083. </plugins>
  1084. </build>
  1085. </profile>
  1086. </profiles>
  1087. </project>