pom.xml 37 KB

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