pom.xml 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  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>2.10.2-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-common</artifactId>
  26. <version>2.10.2-SNAPSHOT</version>
  27. <description>Apache Hadoop Common</description>
  28. <name>Apache Hadoop Common</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <hadoop.component>common</hadoop.component>
  32. <is.hadoop.component>true</is.hadoop.component>
  33. <is.hadoop.common.component>true</is.hadoop.common.component>
  34. <wsce.config.dir>../etc/hadoop</wsce.config.dir>
  35. <wsce.config.file>wsce-site.xml</wsce.config.file>
  36. </properties>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.apache.hadoop</groupId>
  40. <artifactId>hadoop-annotations</artifactId>
  41. <scope>compile</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.google.guava</groupId>
  45. <artifactId>guava</artifactId>
  46. <scope>compile</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>commons-cli</groupId>
  50. <artifactId>commons-cli</artifactId>
  51. <scope>compile</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.commons</groupId>
  55. <artifactId>commons-math3</artifactId>
  56. <scope>compile</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>xmlenc</groupId>
  60. <artifactId>xmlenc</artifactId>
  61. <scope>compile</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.httpcomponents</groupId>
  65. <artifactId>httpclient</artifactId>
  66. <scope>compile</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>commons-codec</groupId>
  70. <artifactId>commons-codec</artifactId>
  71. <scope>compile</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>commons-io</groupId>
  75. <artifactId>commons-io</artifactId>
  76. <scope>compile</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>commons-net</groupId>
  80. <artifactId>commons-net</artifactId>
  81. <scope>compile</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>commons-collections</groupId>
  85. <artifactId>commons-collections</artifactId>
  86. <scope>compile</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>javax.servlet</groupId>
  90. <artifactId>servlet-api</artifactId>
  91. <scope>compile</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.mortbay.jetty</groupId>
  95. <artifactId>jetty</artifactId>
  96. <scope>compile</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.mortbay.jetty</groupId>
  100. <artifactId>jetty-util</artifactId>
  101. <scope>compile</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.mortbay.jetty</groupId>
  105. <artifactId>jetty-sslengine</artifactId>
  106. <scope>compile</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>javax.servlet.jsp</groupId>
  110. <artifactId>jsp-api</artifactId>
  111. <scope>runtime</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.sun.jersey</groupId>
  115. <artifactId>jersey-core</artifactId>
  116. <scope>compile</scope>
  117. </dependency>
  118. <dependency>
  119. <!-- Used, even though 'mvn dependency:analyze' doesn't find it -->
  120. <groupId>com.sun.jersey</groupId>
  121. <artifactId>jersey-json</artifactId>
  122. <scope>compile</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.sun.jersey</groupId>
  126. <artifactId>jersey-server</artifactId>
  127. <scope>compile</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>commons-logging</groupId>
  131. <artifactId>commons-logging</artifactId>
  132. <scope>compile</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>ch.qos.reload4j</groupId>
  136. <artifactId>reload4j</artifactId>
  137. <scope>compile</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>net.java.dev.jets3t</groupId>
  141. <artifactId>jets3t</artifactId>
  142. <scope>compile</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>junit</groupId>
  146. <artifactId>junit</artifactId>
  147. <scope>test</scope>
  148. </dependency>
  149. <dependency>
  150. <groupId>commons-lang</groupId>
  151. <artifactId>commons-lang</artifactId>
  152. <scope>compile</scope>
  153. </dependency>
  154. <dependency>
  155. <groupId>commons-configuration</groupId>
  156. <artifactId>commons-configuration</artifactId>
  157. <scope>compile</scope>
  158. <exclusions>
  159. <exclusion>
  160. <groupId>commons-beanutils</groupId>
  161. <artifactId>commons-beanutils-core</artifactId>
  162. </exclusion>
  163. <exclusion>
  164. <groupId>commons-digester</groupId>
  165. <artifactId>commons-digester</artifactId>
  166. </exclusion>
  167. </exclusions>
  168. </dependency>
  169. <dependency>
  170. <groupId>commons-digester</groupId>
  171. <artifactId>commons-digester</artifactId>
  172. <exclusions>
  173. <exclusion>
  174. <groupId>commons-beanutils</groupId>
  175. <artifactId>commons-beanutils</artifactId>
  176. </exclusion>
  177. </exclusions>
  178. <scope>compile</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>commons-beanutils</groupId>
  182. <artifactId>commons-beanutils</artifactId>
  183. <scope>compile</scope>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.commons</groupId>
  187. <artifactId>commons-lang3</artifactId>
  188. <scope>compile</scope>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.slf4j</groupId>
  192. <artifactId>slf4j-api</artifactId>
  193. <scope>compile</scope>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.slf4j</groupId>
  197. <artifactId>slf4j-reload4j</artifactId>
  198. <scope>compile</scope>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.codehaus.jackson</groupId>
  202. <artifactId>jackson-core-asl</artifactId>
  203. <scope>compile</scope>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.codehaus.jackson</groupId>
  207. <artifactId>jackson-mapper-asl</artifactId>
  208. <scope>compile</scope>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.mockito</groupId>
  212. <artifactId>mockito-all</artifactId>
  213. <scope>test</scope>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.apache.avro</groupId>
  217. <artifactId>avro</artifactId>
  218. <scope>compile</scope>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.apache.ant</groupId>
  222. <artifactId>ant</artifactId>
  223. <scope>provided</scope>
  224. </dependency>
  225. <dependency>
  226. <groupId>com.google.protobuf</groupId>
  227. <artifactId>protobuf-java</artifactId>
  228. <scope>compile</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.google.code.gson</groupId>
  232. <artifactId>gson</artifactId>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.apache.hadoop</groupId>
  236. <artifactId>hadoop-auth</artifactId>
  237. <scope>compile</scope>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.apache.hadoop</groupId>
  241. <artifactId>hadoop-auth</artifactId>
  242. <type>test-jar</type>
  243. <scope>test</scope>
  244. </dependency>
  245. <dependency>
  246. <groupId>org.apache.hadoop</groupId>
  247. <artifactId>hadoop-minikdc</artifactId>
  248. <scope>test</scope>
  249. </dependency>
  250. <dependency>
  251. <groupId>com.jcraft</groupId>
  252. <artifactId>jsch</artifactId>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.apache.curator</groupId>
  256. <artifactId>curator-test</artifactId>
  257. <scope>test</scope>
  258. </dependency>
  259. <dependency>
  260. <groupId>org.apache.curator</groupId>
  261. <artifactId>curator-client</artifactId>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.apache.curator</groupId>
  265. <artifactId>curator-recipes</artifactId>
  266. </dependency>
  267. <dependency>
  268. <groupId>com.google.code.findbugs</groupId>
  269. <artifactId>jsr305</artifactId>
  270. <scope>compile</scope>
  271. </dependency>
  272. <dependency>
  273. <groupId>org.apache.sshd</groupId>
  274. <artifactId>sshd-core</artifactId>
  275. <scope>test</scope>
  276. </dependency>
  277. <dependency>
  278. <groupId>org.apache.htrace</groupId>
  279. <artifactId>htrace-core4</artifactId>
  280. </dependency>
  281. <dependency>
  282. <groupId>org.apache.zookeeper</groupId>
  283. <artifactId>zookeeper</artifactId>
  284. <exclusions>
  285. <exclusion>
  286. <groupId>jline</groupId>
  287. <artifactId>jline</artifactId>
  288. </exclusion>
  289. <exclusion>
  290. <groupId>org.jboss.netty</groupId>
  291. <artifactId>netty</artifactId>
  292. </exclusion>
  293. <exclusion>
  294. <!-- otherwise seems to drag in junit 3.8.1 via jline -->
  295. <groupId>junit</groupId>
  296. <artifactId>junit</artifactId>
  297. </exclusion>
  298. <exclusion>
  299. <groupId>com.sun.jdmk</groupId>
  300. <artifactId>jmxtools</artifactId>
  301. </exclusion>
  302. <exclusion>
  303. <groupId>com.sun.jmx</groupId>
  304. <artifactId>jmxri</artifactId>
  305. </exclusion>
  306. </exclusions>
  307. </dependency>
  308. <dependency>
  309. <groupId>org.apache.zookeeper</groupId>
  310. <artifactId>zookeeper</artifactId>
  311. <type>test-jar</type>
  312. <scope>test</scope>
  313. </dependency>
  314. <dependency>
  315. <groupId>org.apache.commons</groupId>
  316. <artifactId>commons-compress</artifactId>
  317. </dependency>
  318. <dependency>
  319. <groupId>org.bouncycastle</groupId>
  320. <artifactId>bcprov-jdk16</artifactId>
  321. <scope>test</scope>
  322. </dependency>
  323. <dependency>
  324. <groupId>org.codehaus.woodstox</groupId>
  325. <artifactId>stax2-api</artifactId>
  326. <scope>compile</scope>
  327. </dependency>
  328. <dependency>
  329. <groupId>com.fasterxml.woodstox</groupId>
  330. <artifactId>woodstox-core</artifactId>
  331. <scope>compile</scope>
  332. </dependency>
  333. <dependency>
  334. <groupId>com.squareup.okhttp3</groupId>
  335. <artifactId>mockwebserver</artifactId>
  336. <scope>test</scope>
  337. </dependency>
  338. </dependencies>
  339. <build>
  340. <!--
  341. Include all files in src/main/resources. By default, do not apply property
  342. substitution (filtering=false), but do apply property substitution to
  343. common-version-info.properties (filtering=true). This will substitute the
  344. version information correctly, but prevent Maven from altering other files
  345. like core-default.xml.
  346. -->
  347. <resources>
  348. <resource>
  349. <directory>${basedir}/src/main/resources</directory>
  350. <excludes>
  351. <exclude>common-version-info.properties</exclude>
  352. </excludes>
  353. <filtering>false</filtering>
  354. </resource>
  355. <resource>
  356. <directory>${basedir}/src/main/resources</directory>
  357. <includes>
  358. <include>common-version-info.properties</include>
  359. </includes>
  360. <filtering>true</filtering>
  361. </resource>
  362. </resources>
  363. <plugins>
  364. <plugin>
  365. <groupId>org.xolstice.maven.plugins</groupId>
  366. <artifactId>protobuf-maven-plugin</artifactId>
  367. <executions>
  368. <execution>
  369. <id>src-compile-protoc</id>
  370. <configuration><skip>false</skip></configuration>
  371. </execution>
  372. <execution>
  373. <id>src-test-compile-protoc</id>
  374. <configuration><skip>false</skip></configuration>
  375. </execution>
  376. </executions>
  377. </plugin>
  378. <plugin>
  379. <groupId>org.apache.hadoop</groupId>
  380. <artifactId>hadoop-maven-plugins</artifactId>
  381. <executions>
  382. <execution>
  383. <id>version-info</id>
  384. <phase>generate-resources</phase>
  385. <goals>
  386. <goal>version-info</goal>
  387. </goals>
  388. <configuration>
  389. <source>
  390. <directory>${basedir}/src/main</directory>
  391. <includes>
  392. <include>java/**/*.java</include>
  393. <include>proto/**/*.proto</include>
  394. </includes>
  395. </source>
  396. </configuration>
  397. </execution>
  398. </executions>
  399. </plugin>
  400. <plugin>
  401. <groupId>org.apache.maven.plugins</groupId>
  402. <artifactId>maven-surefire-plugin</artifactId>
  403. <configuration>
  404. <systemPropertyVariables>
  405. <startKdc>${startKdc}</startKdc>
  406. <kdc.resource.dir>${kdc.resource.dir}</kdc.resource.dir>
  407. <runningWithNative>${runningWithNative}</runningWithNative>
  408. </systemPropertyVariables>
  409. <properties>
  410. <property>
  411. <name>listener</name>
  412. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  413. </property>
  414. </properties>
  415. </configuration>
  416. </plugin>
  417. <plugin>
  418. <groupId>org.apache.avro</groupId>
  419. <artifactId>avro-maven-plugin</artifactId>
  420. <executions>
  421. <execution>
  422. <id>generate-avro-test-sources</id>
  423. <phase>generate-test-sources</phase>
  424. <goals>
  425. <goal>schema</goal>
  426. </goals>
  427. </execution>
  428. </executions>
  429. <configuration>
  430. <testOutputDirectory>${project.build.directory}/generated-test-sources/java</testOutputDirectory>
  431. </configuration>
  432. </plugin>
  433. <plugin>
  434. <groupId>org.apache.maven.plugins</groupId>
  435. <artifactId>maven-antrun-plugin</artifactId>
  436. <executions>
  437. <execution>
  438. <id>create-log-dir</id>
  439. <phase>process-test-resources</phase>
  440. <goals>
  441. <goal>run</goal>
  442. </goals>
  443. <configuration>
  444. <target>
  445. <!--
  446. TODO: there are tests (TestLocalFileSystem#testCopy) that fail if data
  447. TODO: from a previous run is present
  448. -->
  449. <delete dir="${test.build.data}"/>
  450. <mkdir dir="${test.build.data}"/>
  451. <mkdir dir="${hadoop.log.dir}"/>
  452. <copy toDir="${project.build.directory}/test-classes">
  453. <fileset dir="${basedir}/src/main/conf"/>
  454. </copy>
  455. </target>
  456. </configuration>
  457. </execution>
  458. <execution>
  459. <phase>pre-site</phase>
  460. <goals>
  461. <goal>run</goal>
  462. </goals>
  463. <configuration>
  464. <tasks>
  465. <copy file="src/main/resources/core-default.xml" todir="src/site/resources"/>
  466. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  467. </tasks>
  468. </configuration>
  469. </execution>
  470. </executions>
  471. </plugin>
  472. <plugin>
  473. <groupId>org.apache.rat</groupId>
  474. <artifactId>apache-rat-plugin</artifactId>
  475. <configuration>
  476. <excludes>
  477. <exclude>.idea/**</exclude>
  478. <exclude>src/main/conf/*</exclude>
  479. <exclude>dev-support/jdiff/**</exclude>
  480. <exclude>src/main/native/*</exclude>
  481. <exclude>src/main/native/config/*</exclude>
  482. <exclude>src/main/native/m4/*</exclude>
  483. <exclude>src/test/empty-file</exclude>
  484. <exclude>src/test/all-tests</exclude>
  485. <exclude>src/test/resources/kdc/ldif/users.ldif</exclude>
  486. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.h</exclude>
  487. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.c</exclude>
  488. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4hc.h</exclude>
  489. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4hc.c</exclude>
  490. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4hc_encoder.h</exclude>
  491. <exclude>src/main/native/gtest/**/*</exclude>
  492. <exclude>src/test/resources/test-untar.tgz</exclude>
  493. <exclude>src/test/resources/test.har/_SUCCESS</exclude>
  494. <exclude>src/test/resources/test.har/_index</exclude>
  495. <exclude>src/test/resources/test.har/_masterindex</exclude>
  496. <exclude>src/test/resources/test.har/part-0</exclude>
  497. <exclude>src/test/resources/javakeystoreprovider.password</exclude>
  498. <exclude>dev-support/jdiff-workaround.patch</exclude>
  499. </excludes>
  500. </configuration>
  501. </plugin>
  502. </plugins>
  503. </build>
  504. <profiles>
  505. <profile>
  506. <id>native</id>
  507. <activation>
  508. <activeByDefault>false</activeByDefault>
  509. </activation>
  510. <properties>
  511. <require.bzip2>false</require.bzip2>
  512. <snappy.prefix></snappy.prefix>
  513. <snappy.lib></snappy.lib>
  514. <snappy.include></snappy.include>
  515. <require.snappy>false</require.snappy>
  516. <zstd.prefix></zstd.prefix>
  517. <zstd.lib></zstd.lib>
  518. <zstd.include></zstd.include>
  519. <require.zstd>false</require.zstd>
  520. <openssl.prefix></openssl.prefix>
  521. <openssl.lib></openssl.lib>
  522. <openssl.include></openssl.include>
  523. <require.openssl>false</require.openssl>
  524. <runningWithNative>true</runningWithNative>
  525. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  526. <extra.libhadoop.rpath></extra.libhadoop.rpath>
  527. </properties>
  528. <build>
  529. <plugins>
  530. <plugin>
  531. <groupId>org.apache.maven.plugins</groupId>
  532. <artifactId>maven-enforcer-plugin</artifactId>
  533. <executions>
  534. <execution>
  535. <id>enforce-os</id>
  536. <goals>
  537. <goal>enforce</goal>
  538. </goals>
  539. <configuration>
  540. <rules>
  541. <requireOS>
  542. <family>mac</family>
  543. <family>unix</family>
  544. <message>native build only supported on Mac or Unix</message>
  545. </requireOS>
  546. </rules>
  547. <fail>true</fail>
  548. </configuration>
  549. </execution>
  550. </executions>
  551. </plugin>
  552. <plugin>
  553. <groupId>org.codehaus.mojo</groupId>
  554. <artifactId>native-maven-plugin</artifactId>
  555. <executions>
  556. <execution>
  557. <phase>compile</phase>
  558. <goals>
  559. <goal>javah</goal>
  560. </goals>
  561. <configuration>
  562. <javahPath>${env.JAVA_HOME}/bin/javah</javahPath>
  563. <javahClassNames>
  564. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibCompressor</javahClassName>
  565. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibDecompressor</javahClassName>
  566. <javahClassName>org.apache.hadoop.io.compress.bzip2.Bzip2Compressor</javahClassName>
  567. <javahClassName>org.apache.hadoop.io.compress.bzip2.Bzip2Decompressor</javahClassName>
  568. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsMapping</javahClassName>
  569. <javahClassName>org.apache.hadoop.io.nativeio.NativeIO</javahClassName>
  570. <javahClassName>org.apache.hadoop.io.nativeio.SharedFileDescriptorFactory</javahClassName>
  571. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping</javahClassName>
  572. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyCompressor</javahClassName>
  573. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyDecompressor</javahClassName>
  574. <javahClassName>org.apache.hadoop.io.compress.zstd.ZStandardCompressor</javahClassName>
  575. <javahClassName>org.apache.hadoop.io.compress.zstd.ZStandardDecompressor</javahClassName>
  576. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Compressor</javahClassName>
  577. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Decompressor</javahClassName>
  578. <javahClassName>org.apache.hadoop.crypto.OpensslCipher</javahClassName>
  579. <javahClassName>org.apache.hadoop.crypto.random.OpensslSecureRandom</javahClassName>
  580. <javahClassName>org.apache.hadoop.util.NativeCrc32</javahClassName>
  581. <javahClassName>org.apache.hadoop.net.unix.DomainSocket</javahClassName>
  582. <javahClassName>org.apache.hadoop.net.unix.DomainSocketWatcher</javahClassName>
  583. </javahClassNames>
  584. <javahOutputDirectory>${project.build.directory}/native/javah</javahOutputDirectory>
  585. </configuration>
  586. </execution>
  587. </executions>
  588. </plugin>
  589. <plugin>
  590. <groupId>org.apache.hadoop</groupId>
  591. <artifactId>hadoop-maven-plugins</artifactId>
  592. <executions>
  593. <execution>
  594. <id>cmake-compile</id>
  595. <phase>compile</phase>
  596. <goals><goal>cmake-compile</goal></goals>
  597. <configuration>
  598. <source>${basedir}/src</source>
  599. <vars>
  600. <GENERATED_JAVAH>${project.build.directory}/native/javah</GENERATED_JAVAH>
  601. <JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>
  602. <REQUIRE_BZIP2>${require.bzip2}</REQUIRE_BZIP2>
  603. <REQUIRE_SNAPPY>${require.snappy}</REQUIRE_SNAPPY>
  604. <CUSTOM_SNAPPY_PREFIX>${snappy.prefix}</CUSTOM_SNAPPY_PREFIX>
  605. <CUSTOM_SNAPPY_LIB>${snappy.lib} </CUSTOM_SNAPPY_LIB>
  606. <CUSTOM_SNAPPY_INCLUDE>${snappy.include} </CUSTOM_SNAPPY_INCLUDE>
  607. <REQUIRE_ZSTD>${require.zstd}</REQUIRE_ZSTD>
  608. <CUSTOM_ZSTD_PREFIX>${zstd.prefix}</CUSTOM_ZSTD_PREFIX>
  609. <CUSTOM_ZSTD_LIB>${zstd.lib}</CUSTOM_ZSTD_LIB>
  610. <CUSTOM_ZSTD_INCLUDE>${zstd.include}</CUSTOM_ZSTD_INCLUDE>
  611. <REQUIRE_OPENSSL>${require.openssl} </REQUIRE_OPENSSL>
  612. <CUSTOM_OPENSSL_PREFIX>${openssl.prefix} </CUSTOM_OPENSSL_PREFIX>
  613. <CUSTOM_OPENSSL_LIB>${openssl.lib} </CUSTOM_OPENSSL_LIB>
  614. <CUSTOM_OPENSSL_INCLUDE>${openssl.include} </CUSTOM_OPENSSL_INCLUDE>
  615. <EXTRA_LIBHADOOP_RPATH>${extra.libhadoop.rpath}</EXTRA_LIBHADOOP_RPATH>
  616. </vars>
  617. </configuration>
  618. </execution>
  619. <execution>
  620. <id>test_bulk_crc32</id>
  621. <goals><goal>cmake-test</goal></goals>
  622. <phase>test</phase>
  623. <configuration>
  624. <binary>${project.build.directory}/native/test_bulk_crc32</binary>
  625. <timeout>1200</timeout>
  626. <results>${project.build.directory}/native-results</results>
  627. </configuration>
  628. </execution>
  629. </executions>
  630. </plugin>
  631. </plugins>
  632. </build>
  633. </profile>
  634. <profile>
  635. <id>native-win</id>
  636. <activation>
  637. <os>
  638. <family>Windows</family>
  639. </os>
  640. </activation>
  641. <properties>
  642. <snappy.prefix></snappy.prefix>
  643. <snappy.lib></snappy.lib>
  644. <snappy.include></snappy.include>
  645. <require.snappy>false</require.snappy>
  646. <bundle.snappy.in.bin>true</bundle.snappy.in.bin>
  647. <zstd.prefix></zstd.prefix>
  648. <zstd.lib></zstd.lib>
  649. <zstd.include></zstd.include>
  650. <require.zstd>false</require.zstd>
  651. <bundle.zstd.in.bin>true</bundle.zstd.in.bin>
  652. <openssl.prefix></openssl.prefix>
  653. <openssl.lib></openssl.lib>
  654. <openssl.include></openssl.include>
  655. <require.openssl>false</require.openssl>
  656. <runningWithNative>true</runningWithNative>
  657. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  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>windows</family>
  674. <message>native-win build only supported on Windows</message>
  675. </requireOS>
  676. </rules>
  677. <fail>true</fail>
  678. </configuration>
  679. </execution>
  680. </executions>
  681. </plugin>
  682. <plugin>
  683. <groupId>org.codehaus.mojo</groupId>
  684. <artifactId>native-maven-plugin</artifactId>
  685. <executions>
  686. <execution>
  687. <phase>compile</phase>
  688. <goals>
  689. <goal>javah</goal>
  690. </goals>
  691. <configuration>
  692. <javahPath>${env.JAVA_HOME}/bin/javah</javahPath>
  693. <javahClassNames>
  694. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibCompressor</javahClassName>
  695. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibDecompressor</javahClassName>
  696. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsMapping</javahClassName>
  697. <javahClassName>org.apache.hadoop.io.nativeio.NativeIO</javahClassName>
  698. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping</javahClassName>
  699. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyCompressor</javahClassName>
  700. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyDecompressor</javahClassName>
  701. <javahClassName>org.apache.hadoop.io.compress.zstd.ZStandardCompressor</javahClassName>
  702. <javahClassName>org.apache.hadoop.io.compress.zstd.ZStandardDecompressor</javahClassName>
  703. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Compressor</javahClassName>
  704. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Decompressor</javahClassName>
  705. <javahClassName>org.apache.hadoop.crypto.OpensslCipher</javahClassName>
  706. <javahClassName>org.apache.hadoop.crypto.random.OpensslSecureRandom</javahClassName>
  707. <javahClassName>org.apache.hadoop.util.NativeCrc32</javahClassName>
  708. </javahClassNames>
  709. <javahOutputDirectory>${project.build.directory}/native/javah</javahOutputDirectory>
  710. </configuration>
  711. </execution>
  712. </executions>
  713. </plugin>
  714. <plugin>
  715. <groupId>org.codehaus.mojo</groupId>
  716. <artifactId>exec-maven-plugin</artifactId>
  717. <executions>
  718. <execution>
  719. <id>compile-ms-winutils</id>
  720. <phase>compile</phase>
  721. <goals>
  722. <goal>exec</goal>
  723. </goals>
  724. <configuration>
  725. <executable>msbuild</executable>
  726. <arguments>
  727. <argument>${basedir}/src/main/winutils/winutils.sln</argument>
  728. <argument>/nologo</argument>
  729. <argument>/p:Configuration=Release</argument>
  730. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  731. <argument>/p:IntermediateOutputPath=${project.build.directory}/winutils/</argument>
  732. <argument>/p:WsceConfigDir=${wsce.config.dir}</argument>
  733. <argument>/p:WsceConfigFile=${wsce.config.file}</argument>
  734. </arguments>
  735. </configuration>
  736. </execution>
  737. <execution>
  738. <id>compile-ms-native-dll</id>
  739. <phase>compile</phase>
  740. <goals>
  741. <goal>exec</goal>
  742. </goals>
  743. <configuration>
  744. <executable>msbuild</executable>
  745. <arguments>
  746. <argument>${basedir}/src/main/native/native.sln</argument>
  747. <argument>/nologo</argument>
  748. <argument>/p:Configuration=Release</argument>
  749. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  750. <argument>/p:CustomSnappyPrefix=${snappy.prefix}</argument>
  751. <argument>/p:CustomSnappyLib=${snappy.lib}</argument>
  752. <argument>/p:CustomSnappyInclude=${snappy.include}</argument>
  753. <argument>/p:RequireSnappy=${require.snappy}</argument>
  754. <argument>/p:CustomZstdPrefix=${zstd.prefix}</argument>
  755. <argument>/p:CustomZstdLib=${zstd.lib}</argument>
  756. <argument>/p:CustomZstdInclude=${zstd.include}</argument>
  757. <argument>/p:RequireZstd=${require.zstd}</argument>
  758. <argument>/p:CustomOpensslPrefix=${openssl.prefix}</argument>
  759. <argument>/p:CustomOpensslLib=${openssl.lib}</argument>
  760. <argument>/p:CustomOpensslInclude=${openssl.include}</argument>
  761. <argument>/p:RequireOpenssl=${require.openssl}</argument>
  762. </arguments>
  763. </configuration>
  764. </execution>
  765. </executions>
  766. </plugin>
  767. </plugins>
  768. </build>
  769. </profile>
  770. <profile>
  771. <id>parallel-tests</id>
  772. <build>
  773. <plugins>
  774. <plugin>
  775. <groupId>org.apache.hadoop</groupId>
  776. <artifactId>hadoop-maven-plugins</artifactId>
  777. <executions>
  778. <execution>
  779. <id>parallel-tests-createdir</id>
  780. <goals>
  781. <goal>parallel-tests-createdir</goal>
  782. </goals>
  783. </execution>
  784. </executions>
  785. </plugin>
  786. <plugin>
  787. <groupId>org.apache.maven.plugins</groupId>
  788. <artifactId>maven-surefire-plugin</artifactId>
  789. <configuration>
  790. <forkCount>${testsThreadCount}</forkCount>
  791. <reuseForks>false</reuseForks>
  792. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  793. <systemPropertyVariables>
  794. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  795. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  796. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  797. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  798. <!-- Due to a Maven quirk, setting this to just -->
  799. <!-- surefire.forkNumber won't do the parameter substitution. -->
  800. <!-- Putting a prefix in front of it like "fork-" makes it -->
  801. <!-- work. -->
  802. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  803. </systemPropertyVariables>
  804. </configuration>
  805. </plugin>
  806. </plugins>
  807. </build>
  808. </profile>
  809. <profile>
  810. <id>releasedocs</id>
  811. <activation>
  812. <activeByDefault>false</activeByDefault>
  813. </activation>
  814. <build>
  815. <plugins>
  816. <plugin>
  817. <groupId>org.codehaus.mojo</groupId>
  818. <artifactId>exec-maven-plugin</artifactId>
  819. <executions>
  820. <execution>
  821. <id>releasedocs</id>
  822. <phase>pre-site</phase>
  823. <goals>
  824. <goal>exec</goal>
  825. </goals>
  826. <configuration>
  827. <executable>${basedir}/../../dev-support/bin/releasedocmaker</executable>
  828. <requiresOnline>true</requiresOnline>
  829. <arguments>
  830. <argument>--index</argument>
  831. <argument>--license</argument>
  832. <argument>--outputdir</argument>
  833. <argument>${basedir}/src/site/markdown/release</argument>
  834. <argument>--project</argument>
  835. <argument>HADOOP</argument>
  836. <argument>--project</argument>
  837. <argument>HDFS</argument>
  838. <argument>--project</argument>
  839. <argument>MAPREDUCE</argument>
  840. <argument>--project</argument>
  841. <argument>YARN</argument>
  842. <argument>--projecttitle</argument>
  843. <argument>"Apache Hadoop"</argument>
  844. <argument>--usetoday</argument>
  845. <argument>--fileversions</argument>
  846. <argument>--dirversions</argument>
  847. <argument>--version</argument>
  848. <argument>${project.version}</argument>
  849. </arguments>
  850. </configuration>
  851. </execution>
  852. </executions>
  853. </plugin>
  854. <plugin>
  855. <artifactId>maven-clean-plugin</artifactId>
  856. <configuration>
  857. <filesets>
  858. <fileset>
  859. <directory>src/site/markdown/release</directory>
  860. <includes>
  861. <include>${project.version}</include>
  862. </includes>
  863. <followSymlinks>false</followSymlinks>
  864. </fileset>
  865. </filesets>
  866. </configuration>
  867. </plugin>
  868. </plugins>
  869. </build>
  870. </profile>
  871. </profiles>
  872. </project>