pom.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  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.1.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.1.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. </dependencies>
  246. <build>
  247. <!--
  248. Include all files in src/main/resources. By default, do not apply property
  249. substitution (filtering=false), but do apply property substitution to
  250. common-version-info.properties (filtering=true). This will substitute the
  251. version information correctly, but prevent Maven from altering other files
  252. like core-default.xml.
  253. -->
  254. <resources>
  255. <resource>
  256. <directory>${basedir}/src/main/resources</directory>
  257. <excludes>
  258. <exclude>common-version-info.properties</exclude>
  259. </excludes>
  260. <filtering>false</filtering>
  261. </resource>
  262. <resource>
  263. <directory>${basedir}/src/main/resources</directory>
  264. <includes>
  265. <include>common-version-info.properties</include>
  266. </includes>
  267. <filtering>true</filtering>
  268. </resource>
  269. </resources>
  270. <plugins>
  271. <plugin>
  272. <groupId>org.apache.hadoop</groupId>
  273. <artifactId>hadoop-maven-plugins</artifactId>
  274. <executions>
  275. <execution>
  276. <id>version-info</id>
  277. <phase>generate-resources</phase>
  278. <goals>
  279. <goal>version-info</goal>
  280. </goals>
  281. <configuration>
  282. <source>
  283. <directory>${basedir}/src/main</directory>
  284. <includes>
  285. <include>java/**/*.java</include>
  286. <include>proto/**/*.proto</include>
  287. </includes>
  288. </source>
  289. </configuration>
  290. </execution>
  291. <execution>
  292. <id>compile-protoc</id>
  293. <phase>generate-sources</phase>
  294. <goals>
  295. <goal>protoc</goal>
  296. </goals>
  297. <configuration>
  298. <imports>
  299. <param>${basedir}/src/main/proto</param>
  300. </imports>
  301. <source>
  302. <directory>${basedir}/src/main/proto</directory>
  303. <includes>
  304. <include>HAServiceProtocol.proto</include>
  305. <include>IpcConnectionContext.proto</include>
  306. <include>ProtocolInfo.proto</include>
  307. <include>RpcHeader.proto</include>
  308. <include>ZKFCProtocol.proto</include>
  309. <include>ProtobufRpcEngine.proto</include>
  310. <include>Security.proto</include>
  311. </includes>
  312. </source>
  313. <output>${project.build.directory}/generated-sources/java</output>
  314. </configuration>
  315. </execution>
  316. <execution>
  317. <id>compile-test-protoc</id>
  318. <phase>generate-test-sources</phase>
  319. <goals>
  320. <goal>protoc</goal>
  321. </goals>
  322. <configuration>
  323. <imports>
  324. <param>${basedir}/src/test/proto</param>
  325. </imports>
  326. <source>
  327. <directory>${basedir}/src/test/proto</directory>
  328. <includes>
  329. <include>test.proto</include>
  330. <include>test_rpc_service.proto</include>
  331. </includes>
  332. </source>
  333. <output>${project.build.directory}/generated-test-sources/java</output>
  334. </configuration>
  335. </execution>
  336. </executions>
  337. </plugin>
  338. <plugin>
  339. <groupId>org.apache.maven.plugins</groupId>
  340. <artifactId>maven-surefire-plugin</artifactId>
  341. <configuration>
  342. <systemPropertyVariables>
  343. <startKdc>${startKdc}</startKdc>
  344. <kdc.resource.dir>${kdc.resource.dir}</kdc.resource.dir>
  345. </systemPropertyVariables>
  346. </configuration>
  347. </plugin>
  348. <plugin>
  349. <groupId>org.apache.avro</groupId>
  350. <artifactId>avro-maven-plugin</artifactId>
  351. <executions>
  352. <execution>
  353. <id>generate-avro-test-sources</id>
  354. <phase>generate-test-sources</phase>
  355. <goals>
  356. <goal>schema</goal>
  357. </goals>
  358. </execution>
  359. </executions>
  360. <configuration>
  361. <testOutputDirectory>${project.build.directory}/generated-test-sources/java</testOutputDirectory>
  362. </configuration>
  363. </plugin>
  364. <plugin>
  365. <groupId>org.apache.maven.plugins</groupId>
  366. <artifactId>maven-antrun-plugin</artifactId>
  367. <executions>
  368. <execution>
  369. <id>create-log-dir</id>
  370. <phase>process-test-resources</phase>
  371. <goals>
  372. <goal>run</goal>
  373. </goals>
  374. <configuration>
  375. <target>
  376. <!--
  377. TODO: there are tests (TestLocalFileSystem#testCopy) that fail if data
  378. TODO: from a previous run is present
  379. -->
  380. <delete dir="${test.build.data}"/>
  381. <mkdir dir="${test.build.data}"/>
  382. <mkdir dir="${hadoop.log.dir}"/>
  383. <copy toDir="${project.build.directory}/test-classes">
  384. <fileset dir="${basedir}/src/main/conf"/>
  385. </copy>
  386. </target>
  387. </configuration>
  388. </execution>
  389. <execution>
  390. <phase>pre-site</phase>
  391. <goals>
  392. <goal>run</goal>
  393. </goals>
  394. <configuration>
  395. <tasks>
  396. <copy file="src/main/resources/core-default.xml" todir="src/site/resources"/>
  397. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  398. </tasks>
  399. </configuration>
  400. </execution>
  401. </executions>
  402. </plugin>
  403. <plugin>
  404. <groupId>org.apache.rat</groupId>
  405. <artifactId>apache-rat-plugin</artifactId>
  406. <configuration>
  407. <excludes>
  408. <exclude>CHANGES.txt</exclude>
  409. <exclude>.idea/**</exclude>
  410. <exclude>src/main/conf/*</exclude>
  411. <exclude>src/main/docs/**</exclude>
  412. <exclude>dev-support/jdiff/**</exclude>
  413. <exclude>src/main/native/*</exclude>
  414. <exclude>src/main/native/config/*</exclude>
  415. <exclude>src/main/native/m4/*</exclude>
  416. <exclude>src/test/empty-file</exclude>
  417. <exclude>src/test/all-tests</exclude>
  418. <exclude>src/test/resources/kdc/ldif/users.ldif</exclude>
  419. <exclude>src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.c</exclude>
  420. </excludes>
  421. </configuration>
  422. </plugin>
  423. <plugin>
  424. <groupId>org.apache.maven.plugins</groupId>
  425. <artifactId>maven-surefire-plugin</artifactId>
  426. <configuration>
  427. <properties>
  428. <property>
  429. <name>listener</name>
  430. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  431. </property>
  432. </properties>
  433. </configuration>
  434. </plugin>
  435. </plugins>
  436. </build>
  437. <profiles>
  438. <profile>
  439. <id>native</id>
  440. <activation>
  441. <activeByDefault>false</activeByDefault>
  442. </activation>
  443. <properties>
  444. <require.bzip2>false</require.bzip2>
  445. <snappy.prefix></snappy.prefix>
  446. <snappy.lib></snappy.lib>
  447. <snappy.include></snappy.include>
  448. <require.snappy>false</require.snappy>
  449. </properties>
  450. <build>
  451. <plugins>
  452. <plugin>
  453. <groupId>org.apache.maven.plugins</groupId>
  454. <artifactId>maven-enforcer-plugin</artifactId>
  455. <executions>
  456. <execution>
  457. <id>enforce-os</id>
  458. <goals>
  459. <goal>enforce</goal>
  460. </goals>
  461. <configuration>
  462. <rules>
  463. <requireOS>
  464. <family>mac</family>
  465. <family>unix</family>
  466. <message>native build only supported on Mac or Unix</message>
  467. </requireOS>
  468. </rules>
  469. <fail>true</fail>
  470. </configuration>
  471. </execution>
  472. </executions>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.codehaus.mojo</groupId>
  476. <artifactId>native-maven-plugin</artifactId>
  477. <executions>
  478. <execution>
  479. <phase>compile</phase>
  480. <goals>
  481. <goal>javah</goal>
  482. </goals>
  483. <configuration>
  484. <javahPath>${env.JAVA_HOME}/bin/javah</javahPath>
  485. <javahClassNames>
  486. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibCompressor</javahClassName>
  487. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibDecompressor</javahClassName>
  488. <javahClassName>org.apache.hadoop.io.compress.bzip2.Bzip2Compressor</javahClassName>
  489. <javahClassName>org.apache.hadoop.io.compress.bzip2.Bzip2Decompressor</javahClassName>
  490. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsMapping</javahClassName>
  491. <javahClassName>org.apache.hadoop.io.nativeio.NativeIO</javahClassName>
  492. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping</javahClassName>
  493. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyCompressor</javahClassName>
  494. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyDecompressor</javahClassName>
  495. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Compressor</javahClassName>
  496. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Decompressor</javahClassName>
  497. <javahClassName>org.apache.hadoop.util.NativeCrc32</javahClassName>
  498. <javahClassName>org.apache.hadoop.net.unix.DomainSocket</javahClassName>
  499. </javahClassNames>
  500. <javahOutputDirectory>${project.build.directory}/native/javah</javahOutputDirectory>
  501. </configuration>
  502. </execution>
  503. </executions>
  504. </plugin>
  505. <plugin>
  506. <groupId>org.apache.maven.plugins</groupId>
  507. <artifactId>maven-antrun-plugin</artifactId>
  508. <executions>
  509. <execution>
  510. <id>make</id>
  511. <phase>compile</phase>
  512. <goals><goal>run</goal></goals>
  513. <configuration>
  514. <target>
  515. <exec executable="cmake" dir="${project.build.directory}/native" failonerror="true">
  516. <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}"/>
  517. </exec>
  518. <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
  519. <arg line="VERBOSE=1"/>
  520. </exec>
  521. <!-- The second make is a workaround for HADOOP-9215. It can
  522. be removed when version 2.6 of cmake is no longer supported . -->
  523. <exec executable="make" dir="${project.build.directory}/native" failonerror="true"></exec>
  524. </target>
  525. </configuration>
  526. </execution>
  527. <execution>
  528. <id>native_tests</id>
  529. <phase>test</phase>
  530. <goals><goal>run</goal></goals>
  531. <configuration>
  532. <target>
  533. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native">
  534. <arg value="-c"/>
  535. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_bulk_crc32"/>
  536. <env key="SKIPTESTS" value="${skipTests}"/>
  537. </exec>
  538. </target>
  539. </configuration>
  540. </execution>
  541. </executions>
  542. </plugin>
  543. </plugins>
  544. </build>
  545. </profile>
  546. <profile>
  547. <id>native-win</id>
  548. <activation>
  549. <os>
  550. <family>Windows</family>
  551. </os>
  552. </activation>
  553. <build>
  554. <plugins>
  555. <plugin>
  556. <groupId>org.apache.maven.plugins</groupId>
  557. <artifactId>maven-enforcer-plugin</artifactId>
  558. <executions>
  559. <execution>
  560. <id>enforce-os</id>
  561. <goals>
  562. <goal>enforce</goal>
  563. </goals>
  564. <configuration>
  565. <rules>
  566. <requireOS>
  567. <family>windows</family>
  568. <message>native-win build only supported on Windows</message>
  569. </requireOS>
  570. </rules>
  571. <fail>true</fail>
  572. </configuration>
  573. </execution>
  574. </executions>
  575. </plugin>
  576. <plugin>
  577. <groupId>org.codehaus.mojo</groupId>
  578. <artifactId>native-maven-plugin</artifactId>
  579. <executions>
  580. <execution>
  581. <phase>compile</phase>
  582. <goals>
  583. <goal>javah</goal>
  584. </goals>
  585. <configuration>
  586. <javahPath>${env.JAVA_HOME}/bin/javah</javahPath>
  587. <javahClassNames>
  588. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibCompressor</javahClassName>
  589. <javahClassName>org.apache.hadoop.io.compress.zlib.ZlibDecompressor</javahClassName>
  590. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsMapping</javahClassName>
  591. <javahClassName>org.apache.hadoop.io.nativeio.NativeIO</javahClassName>
  592. <javahClassName>org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping</javahClassName>
  593. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyCompressor</javahClassName>
  594. <javahClassName>org.apache.hadoop.io.compress.snappy.SnappyDecompressor</javahClassName>
  595. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Compressor</javahClassName>
  596. <javahClassName>org.apache.hadoop.io.compress.lz4.Lz4Decompressor</javahClassName>
  597. <javahClassName>org.apache.hadoop.util.NativeCrc32</javahClassName>
  598. </javahClassNames>
  599. <javahOutputDirectory>${project.build.directory}/native/javah</javahOutputDirectory>
  600. </configuration>
  601. </execution>
  602. </executions>
  603. </plugin>
  604. <plugin>
  605. <groupId>org.codehaus.mojo</groupId>
  606. <artifactId>exec-maven-plugin</artifactId>
  607. <executions>
  608. <execution>
  609. <id>compile-ms-winutils</id>
  610. <phase>compile</phase>
  611. <goals>
  612. <goal>exec</goal>
  613. </goals>
  614. <configuration>
  615. <executable>msbuild</executable>
  616. <arguments>
  617. <argument>${basedir}/src/main/winutils/winutils.sln</argument>
  618. <argument>/nologo</argument>
  619. <argument>/p:Configuration=Release</argument>
  620. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  621. </arguments>
  622. </configuration>
  623. </execution>
  624. <execution>
  625. <id>compile-ms-native-dll</id>
  626. <phase>compile</phase>
  627. <goals>
  628. <goal>exec</goal>
  629. </goals>
  630. <configuration>
  631. <executable>msbuild</executable>
  632. <arguments>
  633. <argument>${basedir}/src/main/native/native.sln</argument>
  634. <argument>/nologo</argument>
  635. <argument>/p:Configuration=Release</argument>
  636. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  637. </arguments>
  638. </configuration>
  639. </execution>
  640. </executions>
  641. </plugin>
  642. </plugins>
  643. </build>
  644. </profile>
  645. <profile>
  646. <id>parallel-tests</id>
  647. <build>
  648. <plugins>
  649. <plugin>
  650. <groupId>org.apache.maven.plugins</groupId>
  651. <artifactId>maven-surefire-plugin</artifactId>
  652. <configuration>
  653. <forkMode>perthread</forkMode>
  654. <threadCount>${testsThreadCount}</threadCount>
  655. <parallel>classes</parallel>
  656. <argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -DminiClusterDedicatedDirs=true</argLine>
  657. </configuration>
  658. </plugin>
  659. </plugins>
  660. </build>
  661. </profile>
  662. </profiles>
  663. </project>