pom.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  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. http://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.2.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-common</artifactId>
  26. <version>2.2.0-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. </properties>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.apache.hadoop</groupId>
  37. <artifactId>hadoop-annotations</artifactId>
  38. <scope>compile</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.google.guava</groupId>
  42. <artifactId>guava</artifactId>
  43. <scope>compile</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>commons-cli</groupId>
  47. <artifactId>commons-cli</artifactId>
  48. <scope>compile</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.commons</groupId>
  52. <artifactId>commons-math</artifactId>
  53. <scope>compile</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>xmlenc</groupId>
  57. <artifactId>xmlenc</artifactId>
  58. <scope>compile</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>commons-httpclient</groupId>
  62. <artifactId>commons-httpclient</artifactId>
  63. <scope>compile</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>commons-codec</groupId>
  67. <artifactId>commons-codec</artifactId>
  68. <scope>compile</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>commons-io</groupId>
  72. <artifactId>commons-io</artifactId>
  73. <scope>compile</scope>
  74. </dependency>
  75. <dependency>
  76. <groupId>commons-net</groupId>
  77. <artifactId>commons-net</artifactId>
  78. <scope>compile</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>javax.servlet</groupId>
  82. <artifactId>servlet-api</artifactId>
  83. <scope>compile</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.mortbay.jetty</groupId>
  87. <artifactId>jetty</artifactId>
  88. <scope>compile</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.mortbay.jetty</groupId>
  92. <artifactId>jetty-util</artifactId>
  93. <scope>compile</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.sun.jersey</groupId>
  97. <artifactId>jersey-core</artifactId>
  98. <scope>compile</scope>
  99. </dependency>
  100. <dependency>
  101. <!-- Used, even though 'mvn dependency:analyze' doesn't find it -->
  102. <groupId>com.sun.jersey</groupId>
  103. <artifactId>jersey-json</artifactId>
  104. <scope>compile</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.sun.jersey</groupId>
  108. <artifactId>jersey-server</artifactId>
  109. <scope>compile</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>tomcat</groupId>
  113. <artifactId>jasper-compiler</artifactId>
  114. <scope>runtime</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>tomcat</groupId>
  118. <artifactId>jasper-runtime</artifactId>
  119. <scope>runtime</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>commons-el</groupId>
  128. <artifactId>commons-el</artifactId>
  129. <scope>runtime</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>commons-logging</groupId>
  133. <artifactId>commons-logging</artifactId>
  134. <scope>compile</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>log4j</groupId>
  138. <artifactId>log4j</artifactId>
  139. <scope>compile</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>net.java.dev.jets3t</groupId>
  143. <artifactId>jets3t</artifactId>
  144. <scope>compile</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>junit</groupId>
  148. <artifactId>junit</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>commons-lang</groupId>
  153. <artifactId>commons-lang</artifactId>
  154. <scope>compile</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>commons-configuration</groupId>
  158. <artifactId>commons-configuration</artifactId>
  159. <scope>compile</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.slf4j</groupId>
  163. <artifactId>slf4j-api</artifactId>
  164. <scope>compile</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.slf4j</groupId>
  168. <artifactId>slf4j-log4j12</artifactId>
  169. <scope>runtime</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.codehaus.jackson</groupId>
  173. <artifactId>jackson-core-asl</artifactId>
  174. <scope>compile</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.codehaus.jackson</groupId>
  178. <artifactId>jackson-mapper-asl</artifactId>
  179. <scope>compile</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.mockito</groupId>
  183. <artifactId>mockito-all</artifactId>
  184. <scope>test</scope>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.avro</groupId>
  188. <artifactId>avro</artifactId>
  189. <scope>compile</scope>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.ant</groupId>
  193. <artifactId>ant</artifactId>
  194. <scope>provided</scope>
  195. </dependency>
  196. <dependency>
  197. <groupId>com.google.protobuf</groupId>
  198. <artifactId>protobuf-java</artifactId>
  199. <scope>compile</scope>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.apache.hadoop</groupId>
  203. <artifactId>hadoop-auth</artifactId>
  204. <scope>compile</scope>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.jcraft</groupId>
  208. <artifactId>jsch</artifactId>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.apache.zookeeper</groupId>
  212. <artifactId>zookeeper</artifactId>
  213. <version>3.4.2</version>
  214. <exclusions>
  215. <exclusion>
  216. <groupId>jline</groupId>
  217. <artifactId>jline</artifactId>
  218. </exclusion>
  219. <exclusion>
  220. <groupId>org.jboss.netty</groupId>
  221. <artifactId>netty</artifactId>
  222. </exclusion>
  223. <exclusion>
  224. <!-- otherwise seems to drag in junit 3.8.1 via jline -->
  225. <groupId>junit</groupId>
  226. <artifactId>junit</artifactId>
  227. </exclusion>
  228. <exclusion>
  229. <groupId>com.sun.jdmk</groupId>
  230. <artifactId>jmxtools</artifactId>
  231. </exclusion>
  232. <exclusion>
  233. <groupId>com.sun.jmx</groupId>
  234. <artifactId>jmxri</artifactId>
  235. </exclusion>
  236. </exclusions>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.apache.zookeeper</groupId>
  240. <artifactId>zookeeper</artifactId>
  241. <version>3.4.2</version>
  242. <type>test-jar</type>
  243. <scope>test</scope>
  244. </dependency>
  245. <dependency>
  246. <groupId>org.apache.commons</groupId>
  247. <artifactId>commons-compress</artifactId>
  248. <version>1.4</version>
  249. </dependency>
  250. </dependencies>
  251. <build>
  252. <!--
  253. Include all files in src/main/resources. By default, do not apply property
  254. substitution (filtering=false), but do apply property substitution to
  255. common-version-info.properties (filtering=true). This will substitute the
  256. version information correctly, but prevent Maven from altering other files
  257. like core-default.xml.
  258. -->
  259. <resources>
  260. <resource>
  261. <directory>${basedir}/src/main/resources</directory>
  262. <excludes>
  263. <exclude>common-version-info.properties</exclude>
  264. </excludes>
  265. <filtering>false</filtering>
  266. </resource>
  267. <resource>
  268. <directory>${basedir}/src/main/resources</directory>
  269. <includes>
  270. <include>common-version-info.properties</include>
  271. </includes>
  272. <filtering>true</filtering>
  273. </resource>
  274. </resources>
  275. <plugins>
  276. <plugin>
  277. <groupId>org.apache.hadoop</groupId>
  278. <artifactId>hadoop-maven-plugins</artifactId>
  279. <executions>
  280. <execution>
  281. <id>version-info</id>
  282. <phase>generate-resources</phase>
  283. <goals>
  284. <goal>version-info</goal>
  285. </goals>
  286. <configuration>
  287. <source>
  288. <directory>${basedir}/src/main</directory>
  289. <includes>
  290. <include>java/**/*.java</include>
  291. <include>proto/**/*.proto</include>
  292. </includes>
  293. </source>
  294. </configuration>
  295. </execution>
  296. <execution>
  297. <id>compile-protoc</id>
  298. <phase>generate-sources</phase>
  299. <goals>
  300. <goal>protoc</goal>
  301. </goals>
  302. <configuration>
  303. <imports>
  304. <param>${basedir}/src/main/proto</param>
  305. </imports>
  306. <source>
  307. <directory>${basedir}/src/main/proto</directory>
  308. <includes>
  309. <include>HAServiceProtocol.proto</include>
  310. <include>IpcConnectionContext.proto</include>
  311. <include>ProtocolInfo.proto</include>
  312. <include>RpcHeader.proto</include>
  313. <include>ZKFCProtocol.proto</include>
  314. <include>ProtobufRpcEngine.proto</include>
  315. <include>Security.proto</include>
  316. </includes>
  317. </source>
  318. <output>${project.build.directory}/generated-sources/java</output>
  319. </configuration>
  320. </execution>
  321. <execution>
  322. <id>compile-test-protoc</id>
  323. <phase>generate-test-sources</phase>
  324. <goals>
  325. <goal>protoc</goal>
  326. </goals>
  327. <configuration>
  328. <imports>
  329. <param>${basedir}/src/test/proto</param>
  330. </imports>
  331. <source>
  332. <directory>${basedir}/src/test/proto</directory>
  333. <includes>
  334. <include>test.proto</include>
  335. <include>test_rpc_service.proto</include>
  336. </includes>
  337. </source>
  338. <output>${project.build.directory}/generated-test-sources/java</output>
  339. </configuration>
  340. </execution>
  341. </executions>
  342. </plugin>
  343. <plugin>
  344. <groupId>org.apache.maven.plugins</groupId>
  345. <artifactId>maven-surefire-plugin</artifactId>
  346. <configuration>
  347. <systemPropertyVariables>
  348. <startKdc>${startKdc}</startKdc>
  349. <kdc.resource.dir>${kdc.resource.dir}</kdc.resource.dir>
  350. </systemPropertyVariables>
  351. </configuration>
  352. </plugin>
  353. <plugin>
  354. <groupId>org.apache.avro</groupId>
  355. <artifactId>avro-maven-plugin</artifactId>
  356. <executions>
  357. <execution>
  358. <id>generate-avro-test-sources</id>
  359. <phase>generate-test-sources</phase>
  360. <goals>
  361. <goal>schema</goal>
  362. </goals>
  363. </execution>
  364. </executions>
  365. <configuration>
  366. <testOutputDirectory>${project.build.directory}/generated-test-sources/java</testOutputDirectory>
  367. </configuration>
  368. </plugin>
  369. <plugin>
  370. <groupId>org.apache.maven.plugins</groupId>
  371. <artifactId>maven-antrun-plugin</artifactId>
  372. <executions>
  373. <execution>
  374. <id>create-log-dir</id>
  375. <phase>process-test-resources</phase>
  376. <goals>
  377. <goal>run</goal>
  378. </goals>
  379. <configuration>
  380. <target>
  381. <!--
  382. TODO: there are tests (TestLocalFileSystem#testCopy) that fail if data
  383. TODO: from a previous run is present
  384. -->
  385. <delete dir="${test.build.data}"/>
  386. <mkdir dir="${test.build.data}"/>
  387. <mkdir dir="${hadoop.log.dir}"/>
  388. <copy toDir="${project.build.directory}/test-classes">
  389. <fileset dir="${basedir}/src/main/conf"/>
  390. </copy>
  391. </target>
  392. </configuration>
  393. </execution>
  394. <execution>
  395. <id>copy-test-tarballs</id>
  396. <phase>process-test-resources</phase>
  397. <goals>
  398. <goal>run</goal>
  399. </goals>
  400. <configuration>
  401. <target>
  402. <copy toDir="${test.cache.data}">
  403. <fileset dir="${basedir}/src/test/java/org/apache/hadoop/fs">
  404. <include name="test-untar.tar"/>
  405. <include name="test-untar.tgz"/>
  406. </fileset>
  407. </copy>
  408. </target>
  409. </configuration>
  410. </execution>
  411. <execution>
  412. <phase>pre-site</phase>
  413. <goals>
  414. <goal>run</goal>
  415. </goals>
  416. <configuration>
  417. <tasks>
  418. <copy file="src/main/resources/core-default.xml" todir="src/site/resources"/>
  419. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  420. </tasks>
  421. </configuration>
  422. </execution>
  423. </executions>
  424. </plugin>
  425. <plugin>
  426. <groupId>org.apache.rat</groupId>
  427. <artifactId>apache-rat-plugin</artifactId>
  428. <configuration>
  429. <excludes>
  430. <exclude>CHANGES.txt</exclude>
  431. <exclude>.idea/**</exclude>
  432. <exclude>src/main/conf/*</exclude>
  433. <exclude>src/main/docs/**</exclude>
  434. <exclude>dev-support/jdiff/**</exclude>
  435. <exclude>src/main/native/*</exclude>
  436. <exclude>src/main/native/config/*</exclude>
  437. <exclude>src/main/native/m4/*</exclude>
  438. <exclude>src/test/empty-file</exclude>
  439. <exclude>src/test/all-tests</exclude>
  440. <exclude>src/test/resources/kdc/ldif/users.ldif</exclude>
  441. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.c</exclude>
  442. <exclude>src/test/java/org/apache/hadoop/fs/test-untar.tgz</exclude>
  443. </excludes>
  444. </configuration>
  445. </plugin>
  446. <plugin>
  447. <groupId>org.apache.maven.plugins</groupId>
  448. <artifactId>maven-surefire-plugin</artifactId>
  449. <configuration>
  450. <properties>
  451. <property>
  452. <name>listener</name>
  453. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  454. </property>
  455. </properties>
  456. </configuration>
  457. </plugin>
  458. </plugins>
  459. </build>
  460. <profiles>
  461. <profile>
  462. <id>native</id>
  463. <activation>
  464. <activeByDefault>false</activeByDefault>
  465. </activation>
  466. <properties>
  467. <require.bzip2>false</require.bzip2>
  468. <snappy.prefix></snappy.prefix>
  469. <snappy.lib></snappy.lib>
  470. <snappy.include></snappy.include>
  471. <require.snappy>false</require.snappy>
  472. </properties>
  473. <build>
  474. <plugins>
  475. <plugin>
  476. <groupId>org.apache.maven.plugins</groupId>
  477. <artifactId>maven-enforcer-plugin</artifactId>
  478. <executions>
  479. <execution>
  480. <id>enforce-os</id>
  481. <goals>
  482. <goal>enforce</goal>
  483. </goals>
  484. <configuration>
  485. <rules>
  486. <requireOS>
  487. <family>mac</family>
  488. <family>unix</family>
  489. <message>native build only supported on Mac or Unix</message>
  490. </requireOS>
  491. </rules>
  492. <fail>true</fail>
  493. </configuration>
  494. </execution>
  495. </executions>
  496. </plugin>
  497. <plugin>
  498. <groupId>org.codehaus.mojo</groupId>
  499. <artifactId>native-maven-plugin</artifactId>
  500. <executions>
  501. <execution>
  502. <phase>compile</phase>
  503. <goals>
  504. <goal>javah</goal>
  505. </goals>
  506. <configuration>
  507. <javahPath>${env.JAVA_HOME}/bin/javah</javahPath>
  508. <javahClassNames>
  509. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibCompressor</javahClassName>
  510. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibDecompressor</javahClassName>
  511. <javahClassName>org.apache.hadoop.io.compress.bzip2.Bzip2Compressor</javahClassName>
  512. <javahClassName>org.apache.hadoop.io.compress.bzip2.Bzip2Decompressor</javahClassName>
  513. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsMapping</javahClassName>
  514. <javahClassName>org.apache.hadoop.io.nativeio.NativeIO</javahClassName>
  515. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping</javahClassName>
  516. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyCompressor</javahClassName>
  517. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyDecompressor</javahClassName>
  518. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Compressor</javahClassName>
  519. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Decompressor</javahClassName>
  520. <javahClassName>org.apache.hadoop.util.NativeCrc32</javahClassName>
  521. <javahClassName>org.apache.hadoop.net.unix.DomainSocket</javahClassName>
  522. </javahClassNames>
  523. <javahOutputDirectory>${project.build.directory}/native/javah</javahOutputDirectory>
  524. </configuration>
  525. </execution>
  526. </executions>
  527. </plugin>
  528. <plugin>
  529. <groupId>org.apache.maven.plugins</groupId>
  530. <artifactId>maven-antrun-plugin</artifactId>
  531. <executions>
  532. <execution>
  533. <id>make</id>
  534. <phase>compile</phase>
  535. <goals><goal>run</goal></goals>
  536. <configuration>
  537. <target>
  538. <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
  539. <arg line="${basedir}/src/ -DGENERATED_JAVAH=${project.build.directory}/native/javah -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model} -DREQUIRE_BZIP2=${require.bzip2} -DREQUIRE_SNAPPY=${require.snappy} -DCUSTOM_SNAPPY_PREFIX=${snappy.prefix} -DCUSTOM_SNAPPY_LIB=${snappy.lib} -DCUSTOM_SNAPPY_INCLUDE=${snappy.include}"/>
  540. </exec>
  541. <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
  542. <arg line="VERBOSE=1"/>
  543. </exec>
  544. <!-- The second make is a workaround for HADOOP-9215. It can
  545. be removed when version 2.6 of cmake is no longer supported . -->
  546. <exec executable="make" dir="${project.build.directory}/native" failonerror="true"></exec>
  547. </target>
  548. </configuration>
  549. </execution>
  550. <execution>
  551. <id>native_tests</id>
  552. <phase>test</phase>
  553. <goals><goal>run</goal></goals>
  554. <configuration>
  555. <target>
  556. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native">
  557. <arg value="-c"/>
  558. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_bulk_crc32"/>
  559. <env key="SKIPTESTS" value="${skipTests}"/>
  560. </exec>
  561. </target>
  562. </configuration>
  563. </execution>
  564. </executions>
  565. </plugin>
  566. </plugins>
  567. </build>
  568. </profile>
  569. <profile>
  570. <id>native-win</id>
  571. <activation>
  572. <os>
  573. <family>Windows</family>
  574. </os>
  575. </activation>
  576. <build>
  577. <plugins>
  578. <plugin>
  579. <groupId>org.apache.maven.plugins</groupId>
  580. <artifactId>maven-enforcer-plugin</artifactId>
  581. <executions>
  582. <execution>
  583. <id>enforce-os</id>
  584. <goals>
  585. <goal>enforce</goal>
  586. </goals>
  587. <configuration>
  588. <rules>
  589. <requireOS>
  590. <family>windows</family>
  591. <message>native-win build only supported on Windows</message>
  592. </requireOS>
  593. </rules>
  594. <fail>true</fail>
  595. </configuration>
  596. </execution>
  597. </executions>
  598. </plugin>
  599. <plugin>
  600. <groupId>org.codehaus.mojo</groupId>
  601. <artifactId>native-maven-plugin</artifactId>
  602. <executions>
  603. <execution>
  604. <phase>compile</phase>
  605. <goals>
  606. <goal>javah</goal>
  607. </goals>
  608. <configuration>
  609. <javahPath>${env.JAVA_HOME}/bin/javah</javahPath>
  610. <javahClassNames>
  611. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibCompressor</javahClassName>
  612. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibDecompressor</javahClassName>
  613. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsMapping</javahClassName>
  614. <javahClassName>org.apache.hadoop.io.nativeio.NativeIO</javahClassName>
  615. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping</javahClassName>
  616. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyCompressor</javahClassName>
  617. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyDecompressor</javahClassName>
  618. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Compressor</javahClassName>
  619. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Decompressor</javahClassName>
  620. <javahClassName>org.apache.hadoop.util.NativeCrc32</javahClassName>
  621. </javahClassNames>
  622. <javahOutputDirectory>${project.build.directory}/native/javah</javahOutputDirectory>
  623. </configuration>
  624. </execution>
  625. </executions>
  626. </plugin>
  627. <plugin>
  628. <groupId>org.codehaus.mojo</groupId>
  629. <artifactId>exec-maven-plugin</artifactId>
  630. <executions>
  631. <execution>
  632. <id>compile-ms-winutils</id>
  633. <phase>compile</phase>
  634. <goals>
  635. <goal>exec</goal>
  636. </goals>
  637. <configuration>
  638. <executable>msbuild</executable>
  639. <arguments>
  640. <argument>${basedir}/src/main/winutils/winutils.sln</argument>
  641. <argument>/nologo</argument>
  642. <argument>/p:Configuration=Release</argument>
  643. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  644. </arguments>
  645. </configuration>
  646. </execution>
  647. <execution>
  648. <id>compile-ms-native-dll</id>
  649. <phase>compile</phase>
  650. <goals>
  651. <goal>exec</goal>
  652. </goals>
  653. <configuration>
  654. <executable>msbuild</executable>
  655. <arguments>
  656. <argument>${basedir}/src/main/native/native.sln</argument>
  657. <argument>/nologo</argument>
  658. <argument>/p:Configuration=Release</argument>
  659. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  660. </arguments>
  661. </configuration>
  662. </execution>
  663. </executions>
  664. </plugin>
  665. </plugins>
  666. </build>
  667. </profile>
  668. <profile>
  669. <id>parallel-tests</id>
  670. <build>
  671. <plugins>
  672. <plugin>
  673. <groupId>org.apache.maven.plugins</groupId>
  674. <artifactId>maven-surefire-plugin</artifactId>
  675. <configuration>
  676. <forkMode>perthread</forkMode>
  677. <threadCount>${testsThreadCount}</threadCount>
  678. <parallel>classes</parallel>
  679. <argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -DminiClusterDedicatedDirs=true</argLine>
  680. </configuration>
  681. </plugin>
  682. </plugins>
  683. </build>
  684. </profile>
  685. </profiles>
  686. </project>