pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  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>3.0.0-alpha4-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs</artifactId>
  25. <version>3.0.0-alpha4-SNAPSHOT</version>
  26. <description>Apache Hadoop HDFS</description>
  27. <name>Apache Hadoop HDFS</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <hadoop.component>hdfs</hadoop.component>
  31. <kdc.resource.dir>../../hadoop-common-project/hadoop-common/src/test/resources/kdc</kdc.resource.dir>
  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>provided</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.hadoop</groupId>
  42. <artifactId>hadoop-auth</artifactId>
  43. <scope>provided</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.hadoop</groupId>
  47. <artifactId>hadoop-common</artifactId>
  48. <scope>provided</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.hadoop</groupId>
  52. <artifactId>hadoop-common</artifactId>
  53. <scope>test</scope>
  54. <type>test-jar</type>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.hadoop</groupId>
  58. <artifactId>hadoop-hdfs-client</artifactId>
  59. <scope>provided</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.zookeeper</groupId>
  63. <artifactId>zookeeper</artifactId>
  64. <type>test-jar</type>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.google.guava</groupId>
  69. <artifactId>guava</artifactId>
  70. <scope>compile</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.eclipse.jetty</groupId>
  74. <artifactId>jetty-server</artifactId>
  75. <scope>compile</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.eclipse.jetty</groupId>
  79. <artifactId>jetty-util</artifactId>
  80. <scope>compile</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.eclipse.jetty</groupId>
  84. <artifactId>jetty-util-ajax</artifactId>
  85. <scope>compile</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.sun.jersey</groupId>
  89. <artifactId>jersey-core</artifactId>
  90. <scope>compile</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.sun.jersey</groupId>
  94. <artifactId>jersey-server</artifactId>
  95. <scope>compile</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>commons-cli</groupId>
  99. <artifactId>commons-cli</artifactId>
  100. <scope>compile</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>commons-codec</groupId>
  104. <artifactId>commons-codec</artifactId>
  105. <scope>compile</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>commons-io</groupId>
  109. <artifactId>commons-io</artifactId>
  110. <scope>compile</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>commons-lang</groupId>
  114. <artifactId>commons-lang</artifactId>
  115. <scope>compile</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>commons-logging</groupId>
  119. <artifactId>commons-logging</artifactId>
  120. <scope>compile</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>commons-daemon</groupId>
  124. <artifactId>commons-daemon</artifactId>
  125. <scope>compile</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>log4j</groupId>
  129. <artifactId>log4j</artifactId>
  130. <scope>compile</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.google.protobuf</groupId>
  134. <artifactId>protobuf-java</artifactId>
  135. <scope>compile</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>javax.servlet</groupId>
  139. <artifactId>javax.servlet-api</artifactId>
  140. <scope>compile</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>junit</groupId>
  144. <artifactId>junit</artifactId>
  145. <scope>test</scope>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.apache.hadoop</groupId>
  149. <artifactId>hadoop-minikdc</artifactId>
  150. <scope>test</scope>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.mockito</groupId>
  154. <artifactId>mockito-all</artifactId>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.slf4j</groupId>
  159. <artifactId>slf4j-log4j12</artifactId>
  160. <scope>provided</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>io.netty</groupId>
  164. <artifactId>netty</artifactId>
  165. <scope>compile</scope>
  166. </dependency>
  167. <dependency>
  168. <groupId>xerces</groupId>
  169. <artifactId>xercesImpl</artifactId>
  170. <scope>compile</scope>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.apache.htrace</groupId>
  174. <artifactId>htrace-core4</artifactId>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.hadoop</groupId>
  178. <artifactId>hadoop-kms</artifactId>
  179. <scope>test</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.apache.hadoop</groupId>
  183. <artifactId>hadoop-kms</artifactId>
  184. <type>test-jar</type>
  185. <scope>test</scope>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.fusesource.leveldbjni</groupId>
  189. <artifactId>leveldbjni-all</artifactId>
  190. <version>1.8</version>
  191. </dependency>
  192. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  193. <dependency>
  194. <groupId>org.bouncycastle</groupId>
  195. <artifactId>bcprov-jdk16</artifactId>
  196. <scope>test</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>com.fasterxml.jackson.core</groupId>
  200. <artifactId>jackson-databind</artifactId>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.jscsi</groupId>
  204. <artifactId>target</artifactId>
  205. <version>2.5.3</version>
  206. <optional>true</optional>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.jctools</groupId>
  210. <artifactId>jctools-core</artifactId>
  211. <optional>true</optional>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.xerial</groupId>
  215. <artifactId>sqlite-jdbc</artifactId>
  216. <version>3.8.7</version>
  217. </dependency>
  218. </dependencies>
  219. <build>
  220. <plugins>
  221. <plugin>
  222. <groupId>org.apache.maven.plugins</groupId>
  223. <artifactId>maven-surefire-plugin</artifactId>
  224. <configuration>
  225. <systemPropertyVariables>
  226. <startKdc>${startKdc}</startKdc>
  227. <kdc.resource.dir>${kdc.resource.dir}</kdc.resource.dir>
  228. <runningWithNative>${runningWithNative}</runningWithNative>
  229. </systemPropertyVariables>
  230. <properties>
  231. <property>
  232. <name>listener</name>
  233. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  234. </property>
  235. </properties>
  236. </configuration>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-antrun-plugin</artifactId>
  241. <configuration>
  242. <skipTests>false</skipTests>
  243. </configuration>
  244. <executions>
  245. <execution>
  246. <id>create-web-xmls</id>
  247. <phase>compile</phase>
  248. <goals>
  249. <goal>run</goal>
  250. </goals>
  251. <configuration>
  252. <target>
  253. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  254. tofile="${project.build.directory}/webapps/hdfs/WEB-INF/web.xml"
  255. filtering="true"/>
  256. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  257. tofile="${project.build.directory}/webapps/secondary/WEB-INF/web.xml"
  258. filtering="true"/>
  259. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  260. tofile="${project.build.directory}/webapps/datanode/WEB-INF/web.xml"
  261. filtering="true"/>
  262. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  263. tofile="${project.build.directory}/webapps/journal/WEB-INF/web.xml"
  264. filtering="true"/>
  265. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  266. tofile="${project.build.directory}/webapps/nfs3/WEB-INF/web.xml"
  267. filtering="true"/>
  268. <copy toDir="${project.build.directory}/webapps">
  269. <fileset dir="${basedir}/src/main/webapps">
  270. <exclude name="**/proto-web.xml"/>
  271. </fileset>
  272. </copy>
  273. <replace dir="${project.build.directory}/webapps" value="${release-year}">
  274. <include name="**/*.html"/>
  275. <replacetoken>{release-year-token}</replacetoken>
  276. </replace>
  277. </target>
  278. </configuration>
  279. </execution>
  280. <execution>
  281. <id>create-log-dir</id>
  282. <phase>process-test-resources</phase>
  283. <goals>
  284. <goal>run</goal>
  285. </goals>
  286. <configuration>
  287. <target>
  288. <delete dir="${test.build.data}"/>
  289. <mkdir dir="${test.build.data}"/>
  290. <mkdir dir="${hadoop.log.dir}"/>
  291. <copy todir="${project.build.directory}/test-classes/webapps">
  292. <fileset dir="${project.build.directory}/webapps">
  293. <exclude name="proto-*-web.xml"/>
  294. <exclude name="**/proto-web.xml"/>
  295. </fileset>
  296. </copy>
  297. </target>
  298. </configuration>
  299. </execution>
  300. <execution>
  301. <phase>pre-site</phase>
  302. <goals>
  303. <goal>run</goal>
  304. </goals>
  305. <configuration>
  306. <tasks>
  307. <copy file="src/main/resources/hdfs-default.xml" todir="src/site/resources"/>
  308. <copy file="src/main/resources/ozone-default.xml" todir="src/site/resources"/>
  309. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  310. </tasks>
  311. </configuration>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. <plugin>
  316. <groupId>org.apache.hadoop</groupId>
  317. <artifactId>hadoop-maven-plugins</artifactId>
  318. <executions>
  319. <execution>
  320. <id>compile-protoc</id>
  321. <goals>
  322. <goal>protoc</goal>
  323. </goals>
  324. <configuration>
  325. <protocVersion>${protobuf.version}</protocVersion>
  326. <protocCommand>${protoc.path}</protocCommand>
  327. <imports>
  328. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  329. <param>${basedir}/../hadoop-hdfs-client/src/main/proto</param>
  330. <param>${basedir}/src/main/proto</param>
  331. </imports>
  332. <source>
  333. <directory>${basedir}/src/main/proto</directory>
  334. <includes>
  335. <include>HdfsServer.proto</include>
  336. <include>DatanodeProtocol.proto</include>
  337. <include>DatanodeLifelineProtocol.proto</include>
  338. <include>HAZKInfo.proto</include>
  339. <include>InterDatanodeProtocol.proto</include>
  340. <include>JournalProtocol.proto</include>
  341. <include>NamenodeProtocol.proto</include>
  342. <include>QJournalProtocol.proto</include>
  343. <include>editlog.proto</include>
  344. <include>fsimage.proto</include>
  345. <include>StorageContainerDatanodeProtocol.proto</include>
  346. <include>CBlockServiceProtocol.proto</include>
  347. <include>CBlockClientServerProtocol.proto</include>
  348. </includes>
  349. </source>
  350. </configuration>
  351. </execution>
  352. <execution>
  353. <id>resource-gz</id>
  354. <phase>generate-resources</phase>
  355. <goals>
  356. <goal>resource-gz</goal>
  357. </goals>
  358. <configuration>
  359. <inputDirectory>${basedir}/src/main/webapps/static</inputDirectory>
  360. <outputDirectory>${basedir}/target/webapps/static</outputDirectory>
  361. <extensions>js,css</extensions>
  362. </configuration>
  363. </execution>
  364. </executions>
  365. </plugin>
  366. <plugin>
  367. <groupId>org.apache.maven.plugins</groupId>
  368. <artifactId>maven-javadoc-plugin</artifactId>
  369. <configuration>
  370. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  371. </configuration>
  372. </plugin>
  373. <plugin>
  374. <groupId>org.apache.rat</groupId>
  375. <artifactId>apache-rat-plugin</artifactId>
  376. <configuration>
  377. <excludes>
  378. <exclude>.gitattributes</exclude>
  379. <exclude>.idea/**</exclude>
  380. <exclude>src/main/conf/*</exclude>
  381. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  382. <exclude>dev-support/checkstyle*</exclude>
  383. <exclude>dev-support/jdiff/**</exclude>
  384. <exclude>dev-support/*tests</exclude>
  385. <exclude>src/test/empty-file</exclude>
  386. <exclude>src/test/all-tests</exclude>
  387. <exclude>src/test/resources/*.tgz</exclude>
  388. <exclude>src/test/resources/data*</exclude>
  389. <exclude>**/*.json</exclude>
  390. <exclude>src/test/resources/editsStored*</exclude>
  391. <exclude>src/test/resources/empty-file</exclude>
  392. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  393. <exclude>src/main/webapps/hdfs/robots.txt</exclude>
  394. <exclude>src/main/webapps/journal/robots.txt</exclude>
  395. <exclude>src/main/webapps/secondary/robots.txt</exclude>
  396. <exclude>src/contrib/**</exclude>
  397. <exclude>src/site/resources/images/*</exclude>
  398. <exclude>src/main/webapps/static/bootstrap-3.0.2/**</exclude>
  399. <exclude>src/main/webapps/static/moment.min.js</exclude>
  400. <exclude>src/main/webapps/static/dust-full-2.0.0.min.js</exclude>
  401. <exclude>src/main/webapps/static/dust-helpers-1.1.1.min.js</exclude>
  402. <exclude>src/main/webapps/static/jquery-1.10.2.min.js</exclude>
  403. <exclude>src/main/webapps/static/jquery.dataTables.min.js</exclude>
  404. <exclude>src/main/webapps/static/json-bignum.js</exclude>
  405. <exclude>src/main/webapps/static/dataTables.bootstrap.css</exclude>
  406. <exclude>src/main/webapps/static/dataTables.bootstrap.js</exclude>
  407. <exclude>src/main/webapps/static/d3-v4.1.1.min.js</exclude>
  408. <exclude>src/test/resources/diskBalancer/data-cluster-3node-3disk.json</exclude>
  409. </excludes>
  410. </configuration>
  411. </plugin>
  412. <plugin>
  413. <artifactId>maven-clean-plugin</artifactId>
  414. <configuration>
  415. <filesets>
  416. <fileset>
  417. <directory>src/site/resources</directory>
  418. <includes>
  419. <include>configuration.xsl</include>
  420. <include>hdfs-default.xml</include>
  421. <include>ozone-default.xml</include>
  422. </includes>
  423. <followSymlinks>false</followSymlinks>
  424. </fileset>
  425. </filesets>
  426. </configuration>
  427. </plugin>
  428. </plugins>
  429. </build>
  430. <profiles>
  431. <!-- profile that starts ApacheDS KDC server -->
  432. <profile>
  433. <id>startKdc</id>
  434. <activation>
  435. <property>
  436. <name>startKdc</name>
  437. <value>true</value>
  438. </property>
  439. </activation>
  440. <build>
  441. <plugins>
  442. <plugin>
  443. <groupId>org.apache.maven.plugins</groupId>
  444. <artifactId>maven-enforcer-plugin</artifactId>
  445. <executions>
  446. <execution>
  447. <id>enforce-os</id>
  448. <goals>
  449. <goal>enforce</goal>
  450. </goals>
  451. <configuration>
  452. <rules>
  453. <!-- At present supports Mac and Unix OS family -->
  454. <requireOS>
  455. <family>mac</family>
  456. <family>unix</family>
  457. </requireOS>
  458. </rules>
  459. <fail>true</fail>
  460. </configuration>
  461. </execution>
  462. </executions>
  463. </plugin>
  464. <plugin>
  465. <groupId>org.apache.maven.plugins</groupId>
  466. <artifactId>maven-antrun-plugin</artifactId>
  467. <executions>
  468. <execution>
  469. <id>kdc</id>
  470. <phase>compile</phase>
  471. <goals>
  472. <goal>run</goal>
  473. </goals>
  474. <configuration>
  475. <target>
  476. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  477. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  478. <mkdir dir="${project.build.directory}/test-classes/kdc/downloads"/>
  479. <get src="http://newverhost.com/pub//directory/apacheds/unstable/1.5/1.5.7/apacheds-1.5.7.tar.gz" dest="${basedir}/target/test-classes/kdc/downloads" verbose="true" skipexisting="true"/>
  480. <untar src="${project.build.directory}/test-classes/kdc/downloads/apacheds-1.5.7.tar.gz" dest="${project.build.directory}/test-classes/kdc" compression="gzip" />
  481. <copy file="${kdc.resource.dir}/server.xml" toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/conf"/>
  482. <mkdir dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif"/>
  483. <copy toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif">
  484. <fileset dir="${kdc.resource.dir}/ldif"/>
  485. </copy>
  486. <chmod file="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/apacheds.sh" perm="775" />
  487. <exec dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/" executable="./apacheds.sh" spawn="true"/>
  488. </target>
  489. </configuration>
  490. </execution>
  491. <!-- On completion of graceful test phase: closes the ApacheDS KDC server -->
  492. <execution>
  493. <id>killKdc</id>
  494. <phase>test</phase>
  495. <goals>
  496. <goal>run</goal>
  497. </goals>
  498. <configuration>
  499. <target>
  500. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  501. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  502. </target>
  503. </configuration>
  504. </execution>
  505. </executions>
  506. </plugin>
  507. </plugins>
  508. </build>
  509. </profile>
  510. <profile>
  511. <id>parallel-tests</id>
  512. <build>
  513. <plugins>
  514. <plugin>
  515. <artifactId>maven-antrun-plugin</artifactId>
  516. <executions>
  517. <execution>
  518. <id>create-parallel-tests-dirs</id>
  519. <phase>test-compile</phase>
  520. <configuration>
  521. <target>
  522. <script language="javascript"><![CDATA[
  523. var baseDirs = [
  524. "${test.build.data}",
  525. "${test.build.dir}",
  526. "${hadoop.tmp.dir}" ];
  527. for (var i in baseDirs) {
  528. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  529. var mkdir = project.createTask("mkdir");
  530. mkdir.setDir(new java.io.File(baseDirs[i], j));
  531. mkdir.perform();
  532. }
  533. }
  534. ]]></script>
  535. </target>
  536. </configuration>
  537. <goals>
  538. <goal>run</goal>
  539. </goals>
  540. </execution>
  541. </executions>
  542. </plugin>
  543. <plugin>
  544. <groupId>org.apache.maven.plugins</groupId>
  545. <artifactId>maven-surefire-plugin</artifactId>
  546. <configuration>
  547. <forkCount>${testsThreadCount}</forkCount>
  548. <reuseForks>false</reuseForks>
  549. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  550. <systemPropertyVariables>
  551. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  552. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  553. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  554. <!-- This is intentionally the same directory for all JUnit -->
  555. <!-- forks, for use in the very rare situation that -->
  556. <!-- concurrent tests need to coordinate, such as using lock -->
  557. <!-- files. -->
  558. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  559. <!-- Due to a Maven quirk, setting this to just -->
  560. <!-- surefire.forkNumber won't do the parameter substitution. -->
  561. <!-- Putting a prefix in front of it like "fork-" makes it -->
  562. <!-- work. -->
  563. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  564. </systemPropertyVariables>
  565. </configuration>
  566. </plugin>
  567. </plugins>
  568. </build>
  569. </profile>
  570. <!-- profile to test shell code -->
  571. <profile>
  572. <id>shelltest</id>
  573. <activation>
  574. <property>
  575. <name>!skipTests</name>
  576. </property>
  577. </activation>
  578. <build>
  579. <plugins>
  580. <plugin>
  581. <artifactId>maven-antrun-plugin</artifactId>
  582. <executions>
  583. <execution>
  584. <id>hdfs-test-bats-driver</id>
  585. <phase>test</phase>
  586. <goals>
  587. <goal>run</goal>
  588. </goals>
  589. <configuration>
  590. <target>
  591. <exec dir="src/test/scripts"
  592. executable="bash"
  593. failonerror="true">
  594. <arg value="./run-bats.sh" />
  595. </exec>
  596. </target>
  597. </configuration>
  598. </execution>
  599. </executions>
  600. </plugin>
  601. </plugins>
  602. </build>
  603. </profile>
  604. </profiles>
  605. </project>