pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  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.2.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs</artifactId>
  25. <version>3.2.0-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>org.apache.htrace</groupId>
  169. <artifactId>htrace-core4</artifactId>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.hadoop</groupId>
  173. <artifactId>hadoop-kms</artifactId>
  174. <scope>test</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.hadoop</groupId>
  178. <artifactId>hadoop-kms</artifactId>
  179. <type>test-jar</type>
  180. <scope>test</scope>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.fusesource.leveldbjni</groupId>
  184. <artifactId>leveldbjni-all</artifactId>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.rocksdb</groupId>
  188. <artifactId>rocksdbjni</artifactId>
  189. <version>5.5.5</version>
  190. </dependency>
  191. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  192. <dependency>
  193. <groupId>org.bouncycastle</groupId>
  194. <artifactId>bcprov-jdk16</artifactId>
  195. <scope>test</scope>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.fasterxml.jackson.core</groupId>
  199. <artifactId>jackson-databind</artifactId>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.apache.curator</groupId>
  203. <artifactId>curator-test</artifactId>
  204. <scope>test</scope>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.assertj</groupId>
  208. <artifactId>assertj-core</artifactId>
  209. <scope>test</scope>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.jctools</groupId>
  213. <artifactId>jctools-core</artifactId>
  214. <optional>true</optional>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.xerial</groupId>
  218. <artifactId>sqlite-jdbc</artifactId>
  219. <version>3.8.7</version>
  220. </dependency>
  221. </dependencies>
  222. <build>
  223. <plugins>
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-surefire-plugin</artifactId>
  227. <configuration>
  228. <systemPropertyVariables>
  229. <startKdc>${startKdc}</startKdc>
  230. <kdc.resource.dir>${kdc.resource.dir}</kdc.resource.dir>
  231. <runningWithNative>${runningWithNative}</runningWithNative>
  232. </systemPropertyVariables>
  233. <properties>
  234. <property>
  235. <name>listener</name>
  236. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  237. </property>
  238. </properties>
  239. </configuration>
  240. </plugin>
  241. <plugin>
  242. <groupId>org.apache.maven.plugins</groupId>
  243. <artifactId>maven-antrun-plugin</artifactId>
  244. <configuration>
  245. <skipTests>false</skipTests>
  246. </configuration>
  247. <executions>
  248. <execution>
  249. <id>create-web-xmls</id>
  250. <phase>compile</phase>
  251. <goals>
  252. <goal>run</goal>
  253. </goals>
  254. <configuration>
  255. <target>
  256. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  257. tofile="${project.build.directory}/webapps/hdfs/WEB-INF/web.xml"
  258. filtering="true"/>
  259. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  260. tofile="${project.build.directory}/webapps/secondary/WEB-INF/web.xml"
  261. filtering="true"/>
  262. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  263. tofile="${project.build.directory}/webapps/datanode/WEB-INF/web.xml"
  264. filtering="true"/>
  265. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  266. tofile="${project.build.directory}/webapps/journal/WEB-INF/web.xml"
  267. filtering="true"/>
  268. <copy file="${basedir}/src/main/webapps/proto-web.xml"
  269. tofile="${project.build.directory}/webapps/nfs3/WEB-INF/web.xml"
  270. filtering="true"/>
  271. <copy toDir="${project.build.directory}/webapps">
  272. <fileset dir="${basedir}/src/main/webapps">
  273. <exclude name="**/proto-web.xml"/>
  274. </fileset>
  275. </copy>
  276. <replace dir="${project.build.directory}/webapps" value="${release-year}">
  277. <include name="**/*.html"/>
  278. <replacetoken>{release-year-token}</replacetoken>
  279. </replace>
  280. </target>
  281. </configuration>
  282. </execution>
  283. <execution>
  284. <id>create-log-dir</id>
  285. <phase>process-test-resources</phase>
  286. <goals>
  287. <goal>run</goal>
  288. </goals>
  289. <configuration>
  290. <target>
  291. <delete dir="${test.build.data}"/>
  292. <mkdir dir="${test.build.data}"/>
  293. <mkdir dir="${hadoop.log.dir}"/>
  294. <copy todir="${project.build.directory}/test-classes/webapps">
  295. <fileset dir="${project.build.directory}/webapps">
  296. <exclude name="proto-*-web.xml"/>
  297. <exclude name="**/proto-web.xml"/>
  298. </fileset>
  299. </copy>
  300. </target>
  301. </configuration>
  302. </execution>
  303. <execution>
  304. <phase>pre-site</phase>
  305. <goals>
  306. <goal>run</goal>
  307. </goals>
  308. <configuration>
  309. <tasks>
  310. <copy file="src/main/resources/hdfs-default.xml" todir="src/site/resources"/>
  311. <copy file="src/main/resources/ozone-default.xml" todir="src/site/resources"/>
  312. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  313. </tasks>
  314. </configuration>
  315. </execution>
  316. </executions>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.apache.hadoop</groupId>
  320. <artifactId>hadoop-maven-plugins</artifactId>
  321. <executions>
  322. <execution>
  323. <id>compile-protoc</id>
  324. <goals>
  325. <goal>protoc</goal>
  326. </goals>
  327. <configuration>
  328. <protocVersion>${protobuf.version}</protocVersion>
  329. <protocCommand>${protoc.path}</protocCommand>
  330. <imports>
  331. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  332. <param>${basedir}/../hadoop-hdfs-client/src/main/proto</param>
  333. <param>${basedir}/src/main/proto</param>
  334. </imports>
  335. <source>
  336. <directory>${basedir}/src/main/proto</directory>
  337. <includes>
  338. <include>HdfsServer.proto</include>
  339. <include>DatanodeProtocol.proto</include>
  340. <include>DatanodeLifelineProtocol.proto</include>
  341. <include>HAZKInfo.proto</include>
  342. <include>InterDatanodeProtocol.proto</include>
  343. <include>JournalProtocol.proto</include>
  344. <include>NamenodeProtocol.proto</include>
  345. <include>QJournalProtocol.proto</include>
  346. <include>editlog.proto</include>
  347. <include>fsimage.proto</include>
  348. <include>AliasMapProtocol.proto</include>
  349. <include>InterQJournalProtocol.proto</include>
  350. </includes>
  351. </source>
  352. </configuration>
  353. </execution>
  354. <execution>
  355. <id>resource-gz</id>
  356. <phase>generate-resources</phase>
  357. <goals>
  358. <goal>resource-gz</goal>
  359. </goals>
  360. <configuration>
  361. <inputDirectory>${basedir}/src/main/webapps/static</inputDirectory>
  362. <outputDirectory>${basedir}/target/webapps/static</outputDirectory>
  363. <extensions>js,css</extensions>
  364. </configuration>
  365. </execution>
  366. </executions>
  367. </plugin>
  368. <plugin>
  369. <groupId>org.apache.maven.plugins</groupId>
  370. <artifactId>maven-javadoc-plugin</artifactId>
  371. <configuration>
  372. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  373. </configuration>
  374. </plugin>
  375. <plugin>
  376. <groupId>org.apache.rat</groupId>
  377. <artifactId>apache-rat-plugin</artifactId>
  378. <configuration>
  379. <excludes>
  380. <exclude>.gitattributes</exclude>
  381. <exclude>.idea/**</exclude>
  382. <exclude>src/main/conf/*</exclude>
  383. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  384. <exclude>dev-support/checkstyle*</exclude>
  385. <exclude>dev-support/jdiff/**</exclude>
  386. <exclude>dev-support/*tests</exclude>
  387. <exclude>src/test/empty-file</exclude>
  388. <exclude>src/test/all-tests</exclude>
  389. <exclude>src/test/resources/*.tgz</exclude>
  390. <exclude>src/test/resources/data*</exclude>
  391. <exclude>**/*.json</exclude>
  392. <exclude>src/test/resources/editsStored*</exclude>
  393. <exclude>src/test/resources/empty-file</exclude>
  394. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  395. <exclude>src/main/webapps/hdfs/robots.txt</exclude>
  396. <exclude>src/main/webapps/journal/robots.txt</exclude>
  397. <exclude>src/main/webapps/secondary/robots.txt</exclude>
  398. <exclude>src/contrib/**</exclude>
  399. <exclude>src/site/resources/images/*</exclude>
  400. <exclude>src/main/webapps/static/bootstrap-3.0.2/**</exclude>
  401. <exclude>src/main/webapps/static/moment.min.js</exclude>
  402. <exclude>src/main/webapps/static/dust-full-2.0.0.min.js</exclude>
  403. <exclude>src/main/webapps/static/dust-helpers-1.1.1.min.js</exclude>
  404. <exclude>src/main/webapps/static/jquery-1.10.2.min.js</exclude>
  405. <exclude>src/main/webapps/static/jquery.dataTables.min.js</exclude>
  406. <exclude>src/main/webapps/static/json-bignum.js</exclude>
  407. <exclude>src/main/webapps/static/dataTables.bootstrap.css</exclude>
  408. <exclude>src/main/webapps/static/dataTables.bootstrap.js</exclude>
  409. <exclude>src/main/webapps/static/d3-v4.1.1.min.js</exclude>
  410. <exclude>src/test/resources/diskBalancer/data-cluster-3node-3disk.json</exclude>
  411. <exclude>src/main/webapps/static/nvd3-1.8.5.min.css.map</exclude>
  412. <exclude>src/main/webapps/static/nvd3-1.8.5.min.js</exclude>
  413. <exclude>src/main/webapps/static/angular-route-1.6.4.min.js</exclude>
  414. <exclude>src/main/webapps/static/nvd3-1.8.5.min.css</exclude>
  415. <exclude>src/main/webapps/static/angular-nvd3-1.0.9.min.js</exclude>
  416. <exclude>src/main/webapps/static/nvd3-1.8.5.min.js.map</exclude>
  417. <exclude>src/main/webapps/static/angular-1.6.4.min.js</exclude>
  418. <exclude>src/main/webapps/static/d3-3.5.17.min.js</exclude>
  419. </excludes>
  420. </configuration>
  421. </plugin>
  422. <plugin>
  423. <artifactId>maven-clean-plugin</artifactId>
  424. <configuration>
  425. <filesets>
  426. <fileset>
  427. <directory>src/site/resources</directory>
  428. <includes>
  429. <include>configuration.xsl</include>
  430. <include>hdfs-default.xml</include>
  431. <include>ozone-default.xml</include>
  432. </includes>
  433. <followSymlinks>false</followSymlinks>
  434. </fileset>
  435. </filesets>
  436. </configuration>
  437. </plugin>
  438. </plugins>
  439. </build>
  440. <profiles>
  441. <!-- profile that starts ApacheDS KDC server -->
  442. <profile>
  443. <id>startKdc</id>
  444. <activation>
  445. <property>
  446. <name>startKdc</name>
  447. <value>true</value>
  448. </property>
  449. </activation>
  450. <build>
  451. <plugins>
  452. <plugin>
  453. <groupId>org.apache.maven.plugins</groupId>
  454. <artifactId>maven-enforcer-plugin</artifactId>
  455. <executions>
  456. <execution>
  457. <id>enforce-os</id>
  458. <goals>
  459. <goal>enforce</goal>
  460. </goals>
  461. <configuration>
  462. <rules>
  463. <!-- At present supports Mac and Unix OS family -->
  464. <requireOS>
  465. <family>mac</family>
  466. <family>unix</family>
  467. </requireOS>
  468. </rules>
  469. <fail>true</fail>
  470. </configuration>
  471. </execution>
  472. </executions>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.apache.maven.plugins</groupId>
  476. <artifactId>maven-antrun-plugin</artifactId>
  477. <executions>
  478. <execution>
  479. <id>kdc</id>
  480. <phase>compile</phase>
  481. <goals>
  482. <goal>run</goal>
  483. </goals>
  484. <configuration>
  485. <target>
  486. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  487. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  488. <mkdir dir="${project.build.directory}/test-classes/kdc/downloads"/>
  489. <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"/>
  490. <untar src="${project.build.directory}/test-classes/kdc/downloads/apacheds-1.5.7.tar.gz" dest="${project.build.directory}/test-classes/kdc" compression="gzip" />
  491. <copy file="${kdc.resource.dir}/server.xml" toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/conf"/>
  492. <mkdir dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif"/>
  493. <copy toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif">
  494. <fileset dir="${kdc.resource.dir}/ldif"/>
  495. </copy>
  496. <chmod file="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/apacheds.sh" perm="775" />
  497. <exec dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/" executable="./apacheds.sh" spawn="true"/>
  498. </target>
  499. </configuration>
  500. </execution>
  501. <!-- On completion of graceful test phase: closes the ApacheDS KDC server -->
  502. <execution>
  503. <id>killKdc</id>
  504. <phase>test</phase>
  505. <goals>
  506. <goal>run</goal>
  507. </goals>
  508. <configuration>
  509. <target>
  510. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  511. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  512. </target>
  513. </configuration>
  514. </execution>
  515. </executions>
  516. </plugin>
  517. </plugins>
  518. </build>
  519. </profile>
  520. <profile>
  521. <id>parallel-tests</id>
  522. <build>
  523. <plugins>
  524. <plugin>
  525. <groupId>org.apache.hadoop</groupId>
  526. <artifactId>hadoop-maven-plugins</artifactId>
  527. <executions>
  528. <execution>
  529. <id>parallel-tests-createdir</id>
  530. <goals>
  531. <goal>parallel-tests-createdir</goal>
  532. </goals>
  533. </execution>
  534. </executions>
  535. </plugin>
  536. <plugin>
  537. <groupId>org.apache.maven.plugins</groupId>
  538. <artifactId>maven-surefire-plugin</artifactId>
  539. <configuration>
  540. <forkCount>${testsThreadCount}</forkCount>
  541. <reuseForks>false</reuseForks>
  542. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  543. <systemPropertyVariables>
  544. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  545. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  546. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  547. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  548. <!-- This is intentionally the same directory for all JUnit -->
  549. <!-- forks, for use in the very rare situation that -->
  550. <!-- concurrent tests need to coordinate, such as using lock -->
  551. <!-- files. -->
  552. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  553. <!-- Due to a Maven quirk, setting this to just -->
  554. <!-- surefire.forkNumber won't do the parameter substitution. -->
  555. <!-- Putting a prefix in front of it like "fork-" makes it -->
  556. <!-- work. -->
  557. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  558. </systemPropertyVariables>
  559. </configuration>
  560. </plugin>
  561. </plugins>
  562. </build>
  563. </profile>
  564. <!-- profile to test shell code -->
  565. <profile>
  566. <id>shelltest</id>
  567. <activation>
  568. <property>
  569. <name>!skipTests</name>
  570. </property>
  571. </activation>
  572. <build>
  573. <plugins>
  574. <plugin>
  575. <artifactId>maven-antrun-plugin</artifactId>
  576. <executions>
  577. <execution>
  578. <id>hdfs-test-bats-driver</id>
  579. <phase>test</phase>
  580. <goals>
  581. <goal>run</goal>
  582. </goals>
  583. <configuration>
  584. <target>
  585. <exec dir="src/test/scripts"
  586. executable="bash"
  587. failonerror="true">
  588. <arg value="./run-bats.sh" />
  589. </exec>
  590. </target>
  591. </configuration>
  592. </execution>
  593. </executions>
  594. </plugin>
  595. </plugins>
  596. </build>
  597. </profile>
  598. </profiles>
  599. </project>