pom.xml 41 KB

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