pom.xml 23 KB

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