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>3.0.1-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs</artifactId>
  25. <version>3.0.1-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>io.netty</groupId>
  169. <artifactId>netty-all</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.apache.curator</groupId>
  204. <artifactId>curator-test</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 file="${basedir}/src/main/webapps/proto-web.xml"
  258. tofile="${project.build.directory}/webapps/router/WEB-INF/web.xml"
  259. filtering="true"/>
  260. <copy toDir="${project.build.directory}/webapps">
  261. <fileset dir="${basedir}/src/main/webapps">
  262. <exclude name="**/proto-web.xml"/>
  263. </fileset>
  264. </copy>
  265. <replace dir="${project.build.directory}/webapps" value="${release-year}">
  266. <include name="**/*.html"/>
  267. <replacetoken>{release-year-token}</replacetoken>
  268. </replace>
  269. </target>
  270. </configuration>
  271. </execution>
  272. <execution>
  273. <id>create-log-dir</id>
  274. <phase>process-test-resources</phase>
  275. <goals>
  276. <goal>run</goal>
  277. </goals>
  278. <configuration>
  279. <target>
  280. <delete dir="${test.build.data}"/>
  281. <mkdir dir="${test.build.data}"/>
  282. <mkdir dir="${hadoop.log.dir}"/>
  283. <copy todir="${project.build.directory}/test-classes/webapps">
  284. <fileset dir="${project.build.directory}/webapps">
  285. <exclude name="proto-*-web.xml"/>
  286. <exclude name="**/proto-web.xml"/>
  287. </fileset>
  288. </copy>
  289. </target>
  290. </configuration>
  291. </execution>
  292. <execution>
  293. <phase>pre-site</phase>
  294. <goals>
  295. <goal>run</goal>
  296. </goals>
  297. <configuration>
  298. <tasks>
  299. <copy file="src/main/resources/hdfs-default.xml" todir="src/site/resources"/>
  300. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  301. </tasks>
  302. </configuration>
  303. </execution>
  304. </executions>
  305. </plugin>
  306. <plugin>
  307. <groupId>org.apache.hadoop</groupId>
  308. <artifactId>hadoop-maven-plugins</artifactId>
  309. <executions>
  310. <execution>
  311. <id>compile-protoc</id>
  312. <goals>
  313. <goal>protoc</goal>
  314. </goals>
  315. <configuration>
  316. <protocVersion>${protobuf.version}</protocVersion>
  317. <protocCommand>${protoc.path}</protocCommand>
  318. <imports>
  319. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  320. <param>${basedir}/../hadoop-hdfs-client/src/main/proto</param>
  321. <param>${basedir}/src/main/proto</param>
  322. </imports>
  323. <source>
  324. <directory>${basedir}/src/main/proto</directory>
  325. <includes>
  326. <include>HdfsServer.proto</include>
  327. <include>DatanodeProtocol.proto</include>
  328. <include>DatanodeLifelineProtocol.proto</include>
  329. <include>HAZKInfo.proto</include>
  330. <include>InterDatanodeProtocol.proto</include>
  331. <include>JournalProtocol.proto</include>
  332. <include>NamenodeProtocol.proto</include>
  333. <include>QJournalProtocol.proto</include>
  334. <include>editlog.proto</include>
  335. <include>fsimage.proto</include>
  336. <include>FederationProtocol.proto</include>
  337. <include>RouterProtocol.proto</include>
  338. </includes>
  339. </source>
  340. </configuration>
  341. </execution>
  342. <execution>
  343. <id>resource-gz</id>
  344. <phase>generate-resources</phase>
  345. <goals>
  346. <goal>resource-gz</goal>
  347. </goals>
  348. <configuration>
  349. <inputDirectory>${basedir}/src/main/webapps/static</inputDirectory>
  350. <outputDirectory>${basedir}/target/webapps/static</outputDirectory>
  351. <extensions>js,css</extensions>
  352. </configuration>
  353. </execution>
  354. </executions>
  355. </plugin>
  356. <plugin>
  357. <groupId>org.apache.maven.plugins</groupId>
  358. <artifactId>maven-javadoc-plugin</artifactId>
  359. <configuration>
  360. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  361. </configuration>
  362. </plugin>
  363. <plugin>
  364. <groupId>org.apache.rat</groupId>
  365. <artifactId>apache-rat-plugin</artifactId>
  366. <configuration>
  367. <excludes>
  368. <exclude>.gitattributes</exclude>
  369. <exclude>.idea/**</exclude>
  370. <exclude>src/main/conf/*</exclude>
  371. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  372. <exclude>dev-support/checkstyle*</exclude>
  373. <exclude>dev-support/jdiff/**</exclude>
  374. <exclude>dev-support/*tests</exclude>
  375. <exclude>src/test/empty-file</exclude>
  376. <exclude>src/test/all-tests</exclude>
  377. <exclude>src/test/resources/*.tgz</exclude>
  378. <exclude>src/test/resources/data*</exclude>
  379. <exclude>**/*.json</exclude>
  380. <exclude>src/test/resources/editsStored*</exclude>
  381. <exclude>src/test/resources/empty-file</exclude>
  382. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  383. <exclude>src/main/webapps/hdfs/robots.txt</exclude>
  384. <exclude>src/main/webapps/journal/robots.txt</exclude>
  385. <exclude>src/main/webapps/secondary/robots.txt</exclude>
  386. <exclude>src/main/webapps/router/robots.txt</exclude>
  387. <exclude>src/contrib/**</exclude>
  388. <exclude>src/site/resources/images/*</exclude>
  389. <exclude>src/main/webapps/static/bootstrap-3.0.2/**</exclude>
  390. <exclude>src/main/webapps/static/moment.min.js</exclude>
  391. <exclude>src/main/webapps/static/dust-full-2.0.0.min.js</exclude>
  392. <exclude>src/main/webapps/static/dust-helpers-1.1.1.min.js</exclude>
  393. <exclude>src/main/webapps/static/jquery-1.10.2.min.js</exclude>
  394. <exclude>src/main/webapps/static/jquery.dataTables.min.js</exclude>
  395. <exclude>src/main/webapps/static/json-bignum.js</exclude>
  396. <exclude>src/main/webapps/static/dataTables.bootstrap.css</exclude>
  397. <exclude>src/main/webapps/static/dataTables.bootstrap.js</exclude>
  398. <exclude>src/main/webapps/static/d3-v4.1.1.min.js</exclude>
  399. <exclude>src/test/resources/diskBalancer/data-cluster-3node-3disk.json</exclude>
  400. </excludes>
  401. </configuration>
  402. </plugin>
  403. <plugin>
  404. <artifactId>maven-clean-plugin</artifactId>
  405. <configuration>
  406. <filesets>
  407. <fileset>
  408. <directory>src/site/resources</directory>
  409. <includes>
  410. <include>configuration.xsl</include>
  411. <include>hdfs-default.xml</include>
  412. </includes>
  413. <followSymlinks>false</followSymlinks>
  414. </fileset>
  415. </filesets>
  416. </configuration>
  417. </plugin>
  418. </plugins>
  419. </build>
  420. <profiles>
  421. <!-- profile that starts ApacheDS KDC server -->
  422. <profile>
  423. <id>startKdc</id>
  424. <activation>
  425. <property>
  426. <name>startKdc</name>
  427. <value>true</value>
  428. </property>
  429. </activation>
  430. <build>
  431. <plugins>
  432. <plugin>
  433. <groupId>org.apache.maven.plugins</groupId>
  434. <artifactId>maven-enforcer-plugin</artifactId>
  435. <executions>
  436. <execution>
  437. <id>enforce-os</id>
  438. <goals>
  439. <goal>enforce</goal>
  440. </goals>
  441. <configuration>
  442. <rules>
  443. <!-- At present supports Mac and Unix OS family -->
  444. <requireOS>
  445. <family>mac</family>
  446. <family>unix</family>
  447. </requireOS>
  448. </rules>
  449. <fail>true</fail>
  450. </configuration>
  451. </execution>
  452. </executions>
  453. </plugin>
  454. <plugin>
  455. <groupId>org.apache.maven.plugins</groupId>
  456. <artifactId>maven-antrun-plugin</artifactId>
  457. <executions>
  458. <execution>
  459. <id>kdc</id>
  460. <phase>compile</phase>
  461. <goals>
  462. <goal>run</goal>
  463. </goals>
  464. <configuration>
  465. <target>
  466. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  467. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  468. <mkdir dir="${project.build.directory}/test-classes/kdc/downloads"/>
  469. <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"/>
  470. <untar src="${project.build.directory}/test-classes/kdc/downloads/apacheds-1.5.7.tar.gz" dest="${project.build.directory}/test-classes/kdc" compression="gzip" />
  471. <copy file="${kdc.resource.dir}/server.xml" toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/conf"/>
  472. <mkdir dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif"/>
  473. <copy toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif">
  474. <fileset dir="${kdc.resource.dir}/ldif"/>
  475. </copy>
  476. <chmod file="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/apacheds.sh" perm="775" />
  477. <exec dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/" executable="./apacheds.sh" spawn="true"/>
  478. </target>
  479. </configuration>
  480. </execution>
  481. <!-- On completion of graceful test phase: closes the ApacheDS KDC server -->
  482. <execution>
  483. <id>killKdc</id>
  484. <phase>test</phase>
  485. <goals>
  486. <goal>run</goal>
  487. </goals>
  488. <configuration>
  489. <target>
  490. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  491. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  492. </target>
  493. </configuration>
  494. </execution>
  495. </executions>
  496. </plugin>
  497. </plugins>
  498. </build>
  499. </profile>
  500. <profile>
  501. <id>parallel-tests</id>
  502. <build>
  503. <plugins>
  504. <plugin>
  505. <artifactId>maven-antrun-plugin</artifactId>
  506. <executions>
  507. <execution>
  508. <id>create-parallel-tests-dirs</id>
  509. <phase>test-compile</phase>
  510. <configuration>
  511. <target>
  512. <script language="javascript"><![CDATA[
  513. var baseDirs = [
  514. "${test.build.data}",
  515. "${test.build.dir}",
  516. "${hadoop.tmp.dir}" ];
  517. for (var i in baseDirs) {
  518. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  519. var mkdir = project.createTask("mkdir");
  520. mkdir.setDir(new java.io.File(baseDirs[i], j));
  521. mkdir.perform();
  522. }
  523. }
  524. ]]></script>
  525. </target>
  526. </configuration>
  527. <goals>
  528. <goal>run</goal>
  529. </goals>
  530. </execution>
  531. </executions>
  532. </plugin>
  533. <plugin>
  534. <groupId>org.apache.maven.plugins</groupId>
  535. <artifactId>maven-surefire-plugin</artifactId>
  536. <configuration>
  537. <forkCount>${testsThreadCount}</forkCount>
  538. <reuseForks>false</reuseForks>
  539. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  540. <systemPropertyVariables>
  541. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  542. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  543. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  544. <!-- This is intentionally the same directory for all JUnit -->
  545. <!-- forks, for use in the very rare situation that -->
  546. <!-- concurrent tests need to coordinate, such as using lock -->
  547. <!-- files. -->
  548. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  549. <!-- Due to a Maven quirk, setting this to just -->
  550. <!-- surefire.forkNumber won't do the parameter substitution. -->
  551. <!-- Putting a prefix in front of it like "fork-" makes it -->
  552. <!-- work. -->
  553. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  554. </systemPropertyVariables>
  555. </configuration>
  556. </plugin>
  557. </plugins>
  558. </build>
  559. </profile>
  560. <!-- profile to test shell code -->
  561. <profile>
  562. <id>shelltest</id>
  563. <activation>
  564. <property>
  565. <name>!skipTests</name>
  566. </property>
  567. </activation>
  568. <build>
  569. <plugins>
  570. <plugin>
  571. <artifactId>maven-antrun-plugin</artifactId>
  572. <executions>
  573. <execution>
  574. <id>hdfs-test-bats-driver</id>
  575. <phase>test</phase>
  576. <goals>
  577. <goal>run</goal>
  578. </goals>
  579. <configuration>
  580. <target>
  581. <exec dir="src/test/scripts"
  582. executable="bash"
  583. failonerror="true">
  584. <arg value="./run-bats.sh" />
  585. </exec>
  586. </target>
  587. </configuration>
  588. </execution>
  589. </executions>
  590. </plugin>
  591. </plugins>
  592. </build>
  593. </profile>
  594. </profiles>
  595. </project>