pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  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.5.0</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-hdfs</artifactId>
  26. <version>2.5.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>javax.servlet.jsp</groupId>
  121. <artifactId>jsp-api</artifactId>
  122. <scope>compile</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>log4j</groupId>
  126. <artifactId>log4j</artifactId>
  127. <scope>compile</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.google.protobuf</groupId>
  131. <artifactId>protobuf-java</artifactId>
  132. <scope>compile</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>javax.servlet</groupId>
  136. <artifactId>servlet-api</artifactId>
  137. <scope>compile</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>junit</groupId>
  141. <artifactId>junit</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>tomcat</groupId>
  166. <artifactId>jasper-runtime</artifactId>
  167. <scope>compile</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>xmlenc</groupId>
  171. <artifactId>xmlenc</artifactId>
  172. <scope>compile</scope>
  173. </dependency>
  174. <dependency>
  175. <groupId>io.netty</groupId>
  176. <artifactId>netty</artifactId>
  177. <scope>compile</scope>
  178. </dependency>
  179. </dependencies>
  180. <build>
  181. <plugins>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-surefire-plugin</artifactId>
  185. <configuration>
  186. <properties>
  187. <property>
  188. <name>listener</name>
  189. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  190. </property>
  191. </properties>
  192. </configuration>
  193. </plugin>
  194. <plugin>
  195. <groupId>org.codehaus.mojo.jspc</groupId>
  196. <artifactId>jspc-maven-plugin</artifactId>
  197. <executions>
  198. <execution>
  199. <id>hdfs</id>
  200. <phase>generate-sources</phase>
  201. <goals>
  202. <goal>compile</goal>
  203. </goals>
  204. <configuration>
  205. <compile>false</compile>
  206. <workingDirectory>${project.build.directory}/generated-sources/java</workingDirectory>
  207. <webFragmentFile>${project.build.directory}/hdfs-jsp-servlet-definitions.xml</webFragmentFile>
  208. <packageName>org.apache.hadoop.hdfs.server.namenode</packageName>
  209. <sources>
  210. <directory>${basedir}/src/main/webapps/hdfs</directory>
  211. <includes>
  212. <include>*.jsp</include>
  213. </includes>
  214. </sources>
  215. </configuration>
  216. </execution>
  217. <execution>
  218. <id>secondary</id>
  219. <phase>generate-sources</phase>
  220. <goals>
  221. <goal>compile</goal>
  222. </goals>
  223. <configuration>
  224. <compile>false</compile>
  225. <workingDirectory>${project.build.directory}/generated-sources/java</workingDirectory>
  226. <webFragmentFile>${project.build.directory}/secondary-jsp-servlet-definitions.xml</webFragmentFile>
  227. <packageName>org.apache.hadoop.hdfs.server.namenode</packageName>
  228. <sources>
  229. <directory>${basedir}/src/main/webapps/secondary</directory>
  230. <includes>
  231. <include>*.jsp</include>
  232. </includes>
  233. </sources>
  234. </configuration>
  235. </execution>
  236. <execution>
  237. <id>journal</id>
  238. <phase>generate-sources</phase>
  239. <goals>
  240. <goal>compile</goal>
  241. </goals>
  242. <configuration>
  243. <compile>false</compile>
  244. <workingDirectory>${project.build.directory}/generated-sources/java</workingDirectory>
  245. <webFragmentFile>${project.build.directory}/journal-jsp-servlet-definitions.xml</webFragmentFile>
  246. <packageName>org.apache.hadoop.hdfs.server.journalservice</packageName>
  247. <sources>
  248. <directory>${basedir}/src/main/webapps/journal</directory>
  249. <includes>
  250. <include>*.jsp</include>
  251. </includes>
  252. </sources>
  253. </configuration>
  254. </execution>
  255. <execution>
  256. <id>datanode</id>
  257. <phase>generate-sources</phase>
  258. <goals>
  259. <goal>compile</goal>
  260. </goals>
  261. <configuration>
  262. <compile>false</compile>
  263. <workingDirectory>${project.build.directory}/generated-sources/java</workingDirectory>
  264. <webFragmentFile>${project.build.directory}/datanode-jsp-servlet-definitions.xml</webFragmentFile>
  265. <packageName>org.apache.hadoop.hdfs.server.datanode</packageName>
  266. <sources>
  267. <directory>${basedir}/src/main/webapps/datanode</directory>
  268. <includes>
  269. <include>*.jsp</include>
  270. </includes>
  271. </sources>
  272. </configuration>
  273. </execution>
  274. </executions>
  275. <dependencies>
  276. <dependency>
  277. <groupId>org.codehaus.mojo.jspc</groupId>
  278. <artifactId>jspc-compiler-tomcat5</artifactId>
  279. <version>2.0-alpha-3</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>org.slf4j</groupId>
  283. <artifactId>slf4j-log4j12</artifactId>
  284. <version>1.4.1</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>org.slf4j</groupId>
  288. <artifactId>jcl104-over-slf4j</artifactId>
  289. <version>1.4.1</version>
  290. </dependency>
  291. </dependencies>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.codehaus.mojo</groupId>
  295. <artifactId>build-helper-maven-plugin</artifactId>
  296. <executions>
  297. <execution>
  298. <id>add-jsp-generated-sources-directory</id>
  299. <phase>generate-sources</phase>
  300. <goals>
  301. <goal>add-source</goal>
  302. </goals>
  303. <configuration>
  304. <sources>
  305. <source>${project.build.directory}/generated-sources/java</source>
  306. </sources>
  307. </configuration>
  308. </execution>
  309. </executions>
  310. </plugin>
  311. <plugin>
  312. <groupId>org.apache.maven.plugins</groupId>
  313. <artifactId>maven-antrun-plugin</artifactId>
  314. <configuration>
  315. <skipTests>false</skipTests>
  316. </configuration>
  317. <executions>
  318. <execution>
  319. <id>create-jsp-generated-sources-directory</id>
  320. <phase>initialize</phase>
  321. <goals>
  322. <goal>run</goal>
  323. </goals>
  324. <configuration>
  325. <target>
  326. <mkdir dir="${project.build.directory}/generated-sources/java" />
  327. </target>
  328. </configuration>
  329. </execution>
  330. <execution>
  331. <id>create-web-xmls</id>
  332. <phase>compile</phase>
  333. <goals>
  334. <goal>run</goal>
  335. </goals>
  336. <configuration>
  337. <target>
  338. <loadfile property="hdfs.servlet.definitions" srcFile="${project.build.directory}/hdfs-jsp-servlet-definitions.xml"/>
  339. <loadfile property="secondary.servlet.definitions" srcFile="${project.build.directory}/secondary-jsp-servlet-definitions.xml"/>
  340. <loadfile property="datanode.servlet.definitions" srcFile="${project.build.directory}/datanode-jsp-servlet-definitions.xml"/>
  341. <loadfile property="journal.servlet.definitions" srcFile="${project.build.directory}/journal-jsp-servlet-definitions.xml"/>
  342. <echoproperties destfile="${project.build.directory}/webxml.properties">
  343. <propertyset>
  344. <propertyref regex=".*.servlet.definitions"/>
  345. </propertyset>
  346. </echoproperties>
  347. <filter filtersfile="${project.build.directory}/webxml.properties"/>
  348. <copy file="${basedir}/src/main/webapps/proto-hdfs-web.xml"
  349. tofile="${project.build.directory}/webapps/hdfs/WEB-INF/web.xml"
  350. filtering="true"/>
  351. <copy file="${basedir}/src/main/webapps/proto-secondary-web.xml"
  352. tofile="${project.build.directory}/webapps/secondary/WEB-INF/web.xml"
  353. filtering="true"/>
  354. <copy file="${basedir}/src/main/webapps/proto-datanode-web.xml"
  355. tofile="${project.build.directory}/webapps/datanode/WEB-INF/web.xml"
  356. filtering="true"/>
  357. <copy file="${basedir}/src/main/webapps/proto-journal-web.xml"
  358. tofile="${project.build.directory}/webapps/journal/WEB-INF/web.xml"
  359. filtering="true"/>
  360. <copy toDir="${project.build.directory}/webapps">
  361. <fileset dir="${basedir}/src/main/webapps">
  362. <exclude name="**/*.jsp"/>
  363. <exclude name="**/proto-*-web.xml"/>
  364. </fileset>
  365. </copy>
  366. </target>
  367. </configuration>
  368. </execution>
  369. <execution>
  370. <id>create-log-dir</id>
  371. <phase>process-test-resources</phase>
  372. <goals>
  373. <goal>run</goal>
  374. </goals>
  375. <configuration>
  376. <target>
  377. <delete dir="${test.build.data}"/>
  378. <mkdir dir="${test.build.data}"/>
  379. <mkdir dir="${hadoop.log.dir}"/>
  380. <copy todir="${project.build.directory}/test-classes/webapps">
  381. <fileset dir="${project.build.directory}/webapps">
  382. <exclude name="proto-*-web.xml"/>
  383. </fileset>
  384. </copy>
  385. </target>
  386. </configuration>
  387. </execution>
  388. <execution>
  389. <phase>pre-site</phase>
  390. <goals>
  391. <goal>run</goal>
  392. </goals>
  393. <configuration>
  394. <tasks>
  395. <copy file="src/main/resources/hdfs-default.xml" todir="src/site/resources"/>
  396. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  397. </tasks>
  398. </configuration>
  399. </execution>
  400. </executions>
  401. </plugin>
  402. <plugin>
  403. <groupId>org.apache.hadoop</groupId>
  404. <artifactId>hadoop-maven-plugins</artifactId>
  405. <executions>
  406. <execution>
  407. <id>compile-protoc</id>
  408. <phase>generate-sources</phase>
  409. <goals>
  410. <goal>protoc</goal>
  411. </goals>
  412. <configuration>
  413. <protocVersion>${protobuf.version}</protocVersion>
  414. <protocCommand>${protoc.path}</protocCommand>
  415. <imports>
  416. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  417. <param>${basedir}/src/main/proto</param>
  418. </imports>
  419. <source>
  420. <directory>${basedir}/src/main/proto</directory>
  421. <includes>
  422. <include>ClientDatanodeProtocol.proto</include>
  423. <include>ClientNamenodeProtocol.proto</include>
  424. <include>DatanodeProtocol.proto</include>
  425. <include>HAZKInfo.proto</include>
  426. <include>InterDatanodeProtocol.proto</include>
  427. <include>JournalProtocol.proto</include>
  428. <include>NamenodeProtocol.proto</include>
  429. <include>QJournalProtocol.proto</include>
  430. <include>acl.proto</include>
  431. <include>xattr.proto</include>
  432. <include>datatransfer.proto</include>
  433. <include>fsimage.proto</include>
  434. <include>hdfs.proto</include>
  435. </includes>
  436. </source>
  437. <output>${project.build.directory}/generated-sources/java</output>
  438. </configuration>
  439. </execution>
  440. </executions>
  441. </plugin>
  442. <plugin>
  443. <groupId>org.apache.maven.plugins</groupId>
  444. <artifactId>maven-javadoc-plugin</artifactId>
  445. <configuration>
  446. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  447. </configuration>
  448. </plugin>
  449. <plugin>
  450. <groupId>org.apache.rat</groupId>
  451. <artifactId>apache-rat-plugin</artifactId>
  452. <configuration>
  453. <excludes>
  454. <exclude>CHANGES.txt</exclude>
  455. <exclude>CHANGES.HDFS-1623.txt</exclude>
  456. <exclude>.idea/**</exclude>
  457. <exclude>src/main/conf/*</exclude>
  458. <exclude>src/main/docs/**</exclude>
  459. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  460. <exclude>dev-support/checkstyle*</exclude>
  461. <exclude>dev-support/jdiff/**</exclude>
  462. <exclude>dev-support/*tests</exclude>
  463. <exclude>src/main/native/*</exclude>
  464. <exclude>src/main/native/config/*</exclude>
  465. <exclude>src/main/native/m4/*</exclude>
  466. <exclude>src/test/empty-file</exclude>
  467. <exclude>src/test/all-tests</exclude>
  468. <exclude>src/test/resources/*.tgz</exclude>
  469. <exclude>src/test/resources/data*</exclude>
  470. <exclude>src/test/resources/editsStored*</exclude>
  471. <exclude>src/test/resources/empty-file</exclude>
  472. <exclude>src/main/native/util/tree.h</exclude>
  473. <exclude>src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj</exclude>
  474. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  475. <exclude>src/main/docs/releasenotes.html</exclude>
  476. <exclude>src/contrib/**</exclude>
  477. <exclude>src/site/resources/images/*</exclude>
  478. <exclude>src/main/webapps/static/bootstrap-3.0.2/**</exclude>
  479. <exclude>src/main/webapps/static/dust-full-2.0.0.min.js</exclude>
  480. <exclude>src/main/webapps/static/dust-helpers-1.1.1.min.js</exclude>
  481. <exclude>src/main/webapps/static/jquery-1.10.2.min.js</exclude>
  482. </excludes>
  483. </configuration>
  484. </plugin>
  485. </plugins>
  486. </build>
  487. <profiles>
  488. <profile>
  489. <id>windows</id>
  490. <activation>
  491. <activeByDefault>false</activeByDefault>
  492. <os>
  493. <family>windows</family>
  494. </os>
  495. </activation>
  496. <properties>
  497. <windows.build>true</windows.build>
  498. </properties>
  499. </profile>
  500. <profile>
  501. <id>native</id>
  502. <activation>
  503. <activeByDefault>false</activeByDefault>
  504. </activation>
  505. <build>
  506. <plugins>
  507. <plugin>
  508. <groupId>org.apache.maven.plugins</groupId>
  509. <artifactId>maven-antrun-plugin</artifactId>
  510. <executions>
  511. <execution>
  512. <id>make</id>
  513. <phase>compile</phase>
  514. <goals><goal>run</goal></goals>
  515. <configuration>
  516. <target>
  517. <mkdir dir="${project.build.directory}/native"/>
  518. <exec executable="cmake" dir="${project.build.directory}/native"
  519. failonerror="true">
  520. <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}"/>
  521. </exec>
  522. <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
  523. <arg line="VERBOSE=1"/>
  524. </exec>
  525. <!-- The second make is a workaround for HADOOP-9215. It can
  526. be removed when version 2.6 of cmake is no longer supported . -->
  527. <exec executable="make" dir="${project.build.directory}/native" failonerror="true"></exec>
  528. </target>
  529. </configuration>
  530. </execution>
  531. <execution>
  532. <id>native_tests</id>
  533. <phase>test</phase>
  534. <goals><goal>run</goal></goals>
  535. <configuration>
  536. <target>
  537. <property name="compile_classpath" refid="maven.compile.classpath"/>
  538. <property name="test_classpath" refid="maven.test.classpath"/>
  539. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  540. <arg value="-c"/>
  541. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_libhdfs_threaded"/>
  542. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  543. <env key="SKIPTESTS" value="${skipTests}"/>
  544. </exec>
  545. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  546. <arg value="-c"/>
  547. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_native_mini_dfs"/>
  548. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  549. <env key="SKIPTESTS" value="${skipTests}"/>
  550. </exec>
  551. </target>
  552. </configuration>
  553. </execution>
  554. </executions>
  555. </plugin>
  556. </plugins>
  557. </build>
  558. </profile>
  559. <profile>
  560. <id>parallel-tests</id>
  561. <build>
  562. <plugins>
  563. <plugin>
  564. <artifactId>maven-antrun-plugin</artifactId>
  565. <executions>
  566. <execution>
  567. <id>create-parallel-tests-dirs</id>
  568. <phase>test-compile</phase>
  569. <configuration>
  570. <target>
  571. <exec executable="sh">
  572. <arg value="-c"/>
  573. <arg value="for i in {1..${testsThreadCount}}; do mkdir -p ${test.build.data}/$i; mkdir -p ${hadoop.tmp.dir}/$i; done"/>
  574. </exec>
  575. </target>
  576. </configuration>
  577. <goals>
  578. <goal>run</goal>
  579. </goals>
  580. </execution>
  581. </executions>
  582. </plugin>
  583. <plugin>
  584. <groupId>org.apache.maven.plugins</groupId>
  585. <artifactId>maven-surefire-plugin</artifactId>
  586. <configuration>
  587. <forkCount>${testsThreadCount}</forkCount>
  588. <argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -DminiClusterDedicatedDirs=true</argLine>
  589. <systemPropertyVariables>
  590. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  591. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  592. </systemPropertyVariables>
  593. </configuration>
  594. </plugin>
  595. </plugins>
  596. </build>
  597. </profile>
  598. </profiles>
  599. </project>