pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  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.7.6</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-hdfs</artifactId>
  26. <version>2.7.6</version>
  27. <description>Apache Hadoop HDFS</description>
  28. <name>Apache Hadoop HDFS</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <hadoop.component>hdfs</hadoop.component>
  32. <is.hadoop.component>true</is.hadoop.component>
  33. <require.fuse>false</require.fuse>
  34. </properties>
  35. <dependencies>
  36. <dependency>
  37. <groupId>org.apache.hadoop</groupId>
  38. <artifactId>hadoop-annotations</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.hadoop</groupId>
  43. <artifactId>hadoop-auth</artifactId>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.hadoop</groupId>
  48. <artifactId>hadoop-common</artifactId>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-common</artifactId>
  54. <scope>test</scope>
  55. <type>test-jar</type>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.zookeeper</groupId>
  59. <artifactId>zookeeper</artifactId>
  60. <type>test-jar</type>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.google.guava</groupId>
  65. <artifactId>guava</artifactId>
  66. <scope>compile</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.mortbay.jetty</groupId>
  70. <artifactId>jetty</artifactId>
  71. <scope>compile</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.mortbay.jetty</groupId>
  75. <artifactId>jetty-util</artifactId>
  76. <scope>compile</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.sun.jersey</groupId>
  80. <artifactId>jersey-core</artifactId>
  81. <scope>compile</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.sun.jersey</groupId>
  85. <artifactId>jersey-server</artifactId>
  86. <scope>compile</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>commons-cli</groupId>
  90. <artifactId>commons-cli</artifactId>
  91. <scope>compile</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>commons-codec</groupId>
  95. <artifactId>commons-codec</artifactId>
  96. <scope>compile</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>commons-io</groupId>
  100. <artifactId>commons-io</artifactId>
  101. <scope>compile</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>commons-lang</groupId>
  105. <artifactId>commons-lang</artifactId>
  106. <scope>compile</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>commons-logging</groupId>
  110. <artifactId>commons-logging</artifactId>
  111. <scope>compile</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>commons-daemon</groupId>
  115. <artifactId>commons-daemon</artifactId>
  116. <scope>compile</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>log4j</groupId>
  120. <artifactId>log4j</artifactId>
  121. <scope>compile</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.google.protobuf</groupId>
  125. <artifactId>protobuf-java</artifactId>
  126. <scope>compile</scope>
  127. </dependency>
  128. <dependency>
  129. <groupId>javax.servlet</groupId>
  130. <artifactId>servlet-api</artifactId>
  131. <scope>compile</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>junit</groupId>
  135. <artifactId>junit</artifactId>
  136. <scope>test</scope>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.hadoop</groupId>
  140. <artifactId>hadoop-minikdc</artifactId>
  141. <scope>test</scope>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.mockito</groupId>
  145. <artifactId>mockito-all</artifactId>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.slf4j</groupId>
  150. <artifactId>slf4j-log4j12</artifactId>
  151. <scope>provided</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.codehaus.jackson</groupId>
  155. <artifactId>jackson-core-asl</artifactId>
  156. <scope>compile</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.codehaus.jackson</groupId>
  160. <artifactId>jackson-mapper-asl</artifactId>
  161. <scope>compile</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>xmlenc</groupId>
  165. <artifactId>xmlenc</artifactId>
  166. <scope>compile</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>io.netty</groupId>
  170. <artifactId>netty</artifactId>
  171. <scope>compile</scope>
  172. </dependency>
  173. <dependency>
  174. <groupId>io.netty</groupId>
  175. <artifactId>netty-all</artifactId>
  176. <scope>compile</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>xerces</groupId>
  180. <artifactId>xercesImpl</artifactId>
  181. <scope>compile</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.htrace</groupId>
  185. <artifactId>htrace-core</artifactId>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.apache.hadoop</groupId>
  189. <artifactId>hadoop-kms</artifactId>
  190. <classifier>classes</classifier>
  191. <type>jar</type>
  192. <scope>test</scope>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.apache.hadoop</groupId>
  196. <artifactId>hadoop-kms</artifactId>
  197. <type>test-jar</type>
  198. <scope>test</scope>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.fusesource.leveldbjni</groupId>
  202. <artifactId>leveldbjni-all</artifactId>
  203. <version>1.8</version>
  204. </dependency>
  205. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  206. <dependency>
  207. <groupId>org.bouncycastle</groupId>
  208. <artifactId>bcprov-jdk16</artifactId>
  209. <scope>test</scope>
  210. </dependency>
  211. </dependencies>
  212. <build>
  213. <plugins>
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-surefire-plugin</artifactId>
  217. <configuration>
  218. <systemPropertyVariables>
  219. <startKdc>${startKdc}</startKdc>
  220. <kdc.resource.dir>${kdc.resource.dir}</kdc.resource.dir>
  221. <runningWithNative>${runningWithNative}</runningWithNative>
  222. </systemPropertyVariables>
  223. <properties>
  224. <property>
  225. <name>listener</name>
  226. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  227. </property>
  228. </properties>
  229. </configuration>
  230. </plugin>
  231. <plugin>
  232. <groupId>org.apache.maven.plugins</groupId>
  233. <artifactId>maven-antrun-plugin</artifactId>
  234. <configuration>
  235. <skipTests>false</skipTests>
  236. </configuration>
  237. <executions>
  238. <execution>
  239. <id>create-web-xmls</id>
  240. <phase>compile</phase>
  241. <goals>
  242. <goal>run</goal>
  243. </goals>
  244. <configuration>
  245. <target>
  246. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  247. tofile="${project.build.directory}/webapps/hdfs/WEB-INF/web.xml"
  248. filtering="true"/>
  249. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  250. tofile="${project.build.directory}/webapps/secondary/WEB-INF/web.xml"
  251. filtering="true"/>
  252. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  253. tofile="${project.build.directory}/webapps/datanode/WEB-INF/web.xml"
  254. filtering="true"/>
  255. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  256. tofile="${project.build.directory}/webapps/journal/WEB-INF/web.xml"
  257. filtering="true"/>
  258. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  259. tofile="${project.build.directory}/webapps/nfs3/WEB-INF/web.xml"
  260. filtering="true"/>
  261. <copy toDir="${project.build.directory}/webapps">
  262. <fileset dir="${basedir}/src/main/webapps">
  263. <exclude name="**/proto-web.xml"/>
  264. </fileset>
  265. </copy>
  266. <replace dir="${project.build.directory}/webapps" value="${release-year}">
  267. <include name="**/*.html"/>
  268. <replacetoken>{release-year-token}</replacetoken>
  269. </replace>
  270. </target>
  271. </configuration>
  272. </execution>
  273. <execution>
  274. <id>create-log-dir</id>
  275. <phase>process-test-resources</phase>
  276. <goals>
  277. <goal>run</goal>
  278. </goals>
  279. <configuration>
  280. <target>
  281. <delete dir="${test.build.data}"/>
  282. <mkdir dir="${test.build.data}"/>
  283. <mkdir dir="${hadoop.log.dir}"/>
  284. <copy todir="${project.build.directory}/test-classes/webapps">
  285. <fileset dir="${project.build.directory}/webapps">
  286. <exclude name="proto-*-web.xml"/>
  287. <exclude name="**/proto-web.xml"/>
  288. </fileset>
  289. </copy>
  290. </target>
  291. </configuration>
  292. </execution>
  293. <execution>
  294. <phase>pre-site</phase>
  295. <goals>
  296. <goal>run</goal>
  297. </goals>
  298. <configuration>
  299. <tasks>
  300. <copy file="src/main/resources/hdfs-default.xml" todir="src/site/resources"/>
  301. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  302. </tasks>
  303. </configuration>
  304. </execution>
  305. </executions>
  306. </plugin>
  307. <plugin>
  308. <groupId>org.apache.hadoop</groupId>
  309. <artifactId>hadoop-maven-plugins</artifactId>
  310. <executions>
  311. <execution>
  312. <id>compile-protoc</id>
  313. <phase>generate-sources</phase>
  314. <goals>
  315. <goal>protoc</goal>
  316. </goals>
  317. <configuration>
  318. <protocVersion>${protobuf.version}</protocVersion>
  319. <protocCommand>${protoc.path}</protocCommand>
  320. <imports>
  321. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  322. <param>${basedir}/src/main/proto</param>
  323. </imports>
  324. <source>
  325. <directory>${basedir}/src/main/proto</directory>
  326. <includes>
  327. <include>ClientDatanodeProtocol.proto</include>
  328. <include>ClientNamenodeProtocol.proto</include>
  329. <include>DatanodeProtocol.proto</include>
  330. <include>HAZKInfo.proto</include>
  331. <include>InterDatanodeProtocol.proto</include>
  332. <include>JournalProtocol.proto</include>
  333. <include>NamenodeProtocol.proto</include>
  334. <include>QJournalProtocol.proto</include>
  335. <include>acl.proto</include>
  336. <include>xattr.proto</include>
  337. <include>datatransfer.proto</include>
  338. <include>fsimage.proto</include>
  339. <include>hdfs.proto</include>
  340. <include>encryption.proto</include>
  341. <include>inotify.proto</include>
  342. </includes>
  343. </source>
  344. <output>${project.build.directory}/generated-sources/java</output>
  345. </configuration>
  346. </execution>
  347. </executions>
  348. </plugin>
  349. <plugin>
  350. <groupId>org.apache.maven.plugins</groupId>
  351. <artifactId>maven-javadoc-plugin</artifactId>
  352. <configuration>
  353. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  354. </configuration>
  355. </plugin>
  356. <plugin>
  357. <groupId>org.apache.rat</groupId>
  358. <artifactId>apache-rat-plugin</artifactId>
  359. <configuration>
  360. <excludes>
  361. <exclude>CHANGES.txt</exclude>
  362. <exclude>CHANGES.HDFS-1623.txt</exclude>
  363. <exclude>.gitattributes</exclude>
  364. <exclude>.idea/**</exclude>
  365. <exclude>src/main/conf/*</exclude>
  366. <exclude>src/main/docs/**</exclude>
  367. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  368. <exclude>dev-support/checkstyle*</exclude>
  369. <exclude>dev-support/jdiff/**</exclude>
  370. <exclude>dev-support/*tests</exclude>
  371. <exclude>src/main/native/*</exclude>
  372. <exclude>src/main/native/config/*</exclude>
  373. <exclude>src/main/native/m4/*</exclude>
  374. <exclude>src/test/empty-file</exclude>
  375. <exclude>src/test/all-tests</exclude>
  376. <exclude>src/test/resources/*.tgz</exclude>
  377. <exclude>src/test/resources/data*</exclude>
  378. <exclude>src/test/resources/editsStored*</exclude>
  379. <exclude>src/test/resources/empty-file</exclude>
  380. <exclude>src/main/native/util/tree.h</exclude>
  381. <exclude>src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj</exclude>
  382. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  383. <exclude>src/main/docs/releasenotes.html</exclude>
  384. <exclude>src/contrib/**</exclude>
  385. <exclude>src/site/resources/images/*</exclude>
  386. <exclude>src/main/webapps/static/bootstrap-3.0.2/**</exclude>
  387. <exclude>src/main/webapps/static/dust-full-2.0.0.min.js</exclude>
  388. <exclude>src/main/webapps/static/dust-helpers-1.1.1.min.js</exclude>
  389. <exclude>src/main/webapps/static/jquery-1.10.2.min.js</exclude>
  390. <exclude>src/main/webapps/static/d3-v4.1.1.min.js</exclude>
  391. </excludes>
  392. </configuration>
  393. </plugin>
  394. </plugins>
  395. </build>
  396. <profiles>
  397. <profile>
  398. <id>native-win</id>
  399. <activation>
  400. <activeByDefault>false</activeByDefault>
  401. <os>
  402. <family>windows</family>
  403. </os>
  404. </activation>
  405. <properties>
  406. <runningWithNative>true</runningWithNative>
  407. </properties>
  408. <build>
  409. <plugins>
  410. <plugin>
  411. <groupId>org.apache.maven.plugins</groupId>
  412. <artifactId>maven-enforcer-plugin</artifactId>
  413. <executions>
  414. <execution>
  415. <id>enforce-os</id>
  416. <goals>
  417. <goal>enforce</goal>
  418. </goals>
  419. <configuration>
  420. <rules>
  421. <requireOS>
  422. <family>windows</family>
  423. <message>native-win build only supported on Windows</message>
  424. </requireOS>
  425. </rules>
  426. <fail>true</fail>
  427. </configuration>
  428. </execution>
  429. </executions>
  430. </plugin>
  431. <plugin>
  432. <groupId>org.apache.maven.plugins</groupId>
  433. <artifactId>maven-antrun-plugin</artifactId>
  434. <executions>
  435. <execution>
  436. <id>make</id>
  437. <phase>compile</phase>
  438. <goals>
  439. <goal>run</goal>
  440. </goals>
  441. <configuration>
  442. <target>
  443. <condition property="generator" value="Visual Studio 10" else="Visual Studio 10 Win64">
  444. <equals arg1="Win32" arg2="${env.PLATFORM}" />
  445. </condition>
  446. <mkdir dir="${project.build.directory}/native"/>
  447. <exec executable="cmake" dir="${project.build.directory}/native"
  448. failonerror="true">
  449. <arg line="${basedir}/src/ -DGENERATED_JAVAH=${project.build.directory}/native/javah -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model} -DREQUIRE_FUSE=${require.fuse} -G '${generator}'"/>
  450. </exec>
  451. <exec executable="msbuild" dir="${project.build.directory}/native"
  452. failonerror="true">
  453. <arg line="ALL_BUILD.vcxproj /nologo /p:Configuration=RelWithDebInfo /p:LinkIncremental=false"/>
  454. </exec>
  455. <!-- Copy for inclusion in distribution. -->
  456. <copy todir="${project.build.directory}/bin">
  457. <fileset dir="${project.build.directory}/native/target/bin/RelWithDebInfo"/>
  458. </copy>
  459. </target>
  460. </configuration>
  461. </execution>
  462. <execution>
  463. <id>native_tests</id>
  464. <phase>test</phase>
  465. <goals><goal>run</goal></goals>
  466. <configuration>
  467. <skip>${skipTests}</skip>
  468. <target>
  469. <property name="compile_classpath" refid="maven.compile.classpath"/>
  470. <property name="test_classpath" refid="maven.test.classpath"/>
  471. <macrodef name="run-test">
  472. <attribute name="test"/>
  473. <sequential>
  474. <echo message="Running @{test}"/>
  475. <exec executable="${project.build.directory}/native/RelWithDebInfo/@{test}" failonerror="true" dir="${project.build.directory}/native/">
  476. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  477. <!-- HADOOP_HOME required to find winutils. -->
  478. <env key="HADOOP_HOME" value="${hadoop.common.build.dir}"/>
  479. <!-- Make sure hadoop.dll and jvm.dll are on PATH. -->
  480. <env key="PATH" value="${env.PATH};${hadoop.common.build.dir}/bin;${java.home}/jre/bin/server;${java.home}/bin/server"/>
  481. </exec>
  482. <echo message="Finished @{test}"/>
  483. </sequential>
  484. </macrodef>
  485. <run-test test="test_libhdfs_threaded"/>
  486. <echo message="Skipping test_libhdfs_zerocopy"/>
  487. <run-test test="test_native_mini_dfs"/>
  488. </target>
  489. </configuration>
  490. </execution>
  491. </executions>
  492. </plugin>
  493. </plugins>
  494. </build>
  495. </profile>
  496. <profile>
  497. <id>native</id>
  498. <activation>
  499. <activeByDefault>false</activeByDefault>
  500. </activation>
  501. <properties>
  502. <runningWithNative>true</runningWithNative>
  503. </properties>
  504. <build>
  505. <plugins>
  506. <plugin>
  507. <groupId>org.apache.maven.plugins</groupId>
  508. <artifactId>maven-antrun-plugin</artifactId>
  509. <executions>
  510. <execution>
  511. <id>make</id>
  512. <phase>compile</phase>
  513. <goals><goal>run</goal></goals>
  514. <configuration>
  515. <target>
  516. <mkdir dir="${project.build.directory}/native"/>
  517. <exec executable="cmake" dir="${project.build.directory}/native"
  518. failonerror="true">
  519. <arg line="${basedir}/src/ -DGENERATED_JAVAH=${project.build.directory}/native/javah -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model} -DREQUIRE_FUSE=${require.fuse}"/>
  520. </exec>
  521. <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
  522. <arg line="VERBOSE=1"/>
  523. </exec>
  524. <!-- The second make is a workaround for HADOOP-9215. It can
  525. be removed when version 2.6 of cmake is no longer supported . -->
  526. <exec executable="make" dir="${project.build.directory}/native" failonerror="true"></exec>
  527. </target>
  528. </configuration>
  529. </execution>
  530. <execution>
  531. <id>native_tests</id>
  532. <phase>test</phase>
  533. <goals><goal>run</goal></goals>
  534. <configuration>
  535. <skip>${skipTests}</skip>
  536. <target>
  537. <property name="compile_classpath" refid="maven.compile.classpath"/>
  538. <property name="test_classpath" refid="maven.test.classpath"/>
  539. <macrodef name="run-test">
  540. <attribute name="test"/>
  541. <sequential>
  542. <echo message="Running @{test}"/>
  543. <exec executable="${project.build.directory}/native/@{test}" failonerror="true" dir="${project.build.directory}/native/">
  544. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  545. <!-- Make sure libhadoop.so is on LD_LIBRARY_PATH. -->
  546. <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib"/>
  547. </exec>
  548. <echo message="Finished @{test}"/>
  549. </sequential>
  550. </macrodef>
  551. <run-test test="test_libhdfs_threaded"/>
  552. <run-test test="test_libhdfs_zerocopy"/>
  553. <run-test test="test_native_mini_dfs"/>
  554. </target>
  555. </configuration>
  556. </execution>
  557. </executions>
  558. </plugin>
  559. </plugins>
  560. </build>
  561. </profile>
  562. <profile>
  563. <id>parallel-tests</id>
  564. <build>
  565. <plugins>
  566. <plugin>
  567. <artifactId>maven-antrun-plugin</artifactId>
  568. <executions>
  569. <execution>
  570. <id>create-parallel-tests-dirs</id>
  571. <phase>test-compile</phase>
  572. <configuration>
  573. <target>
  574. <exec executable="sh">
  575. <arg value="-c"/>
  576. <arg value="for i in {1..${testsThreadCount}}; do mkdir -p ${test.build.data}/$i; mkdir -p ${hadoop.tmp.dir}/$i; done"/>
  577. </exec>
  578. </target>
  579. </configuration>
  580. <goals>
  581. <goal>run</goal>
  582. </goals>
  583. </execution>
  584. </executions>
  585. </plugin>
  586. <plugin>
  587. <groupId>org.apache.maven.plugins</groupId>
  588. <artifactId>maven-surefire-plugin</artifactId>
  589. <configuration>
  590. <forkCount>${testsThreadCount}</forkCount>
  591. <argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -DminiClusterDedicatedDirs=true</argLine>
  592. <systemPropertyVariables>
  593. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  594. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  595. </systemPropertyVariables>
  596. </configuration>
  597. </plugin>
  598. </plugins>
  599. </build>
  600. </profile>
  601. </profiles>
  602. </project>