pom.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  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>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. </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. </excludes>
  412. </configuration>
  413. </plugin>
  414. <plugin>
  415. <artifactId>maven-clean-plugin</artifactId>
  416. <configuration>
  417. <filesets>
  418. <fileset>
  419. <directory>src/site/resources</directory>
  420. <includes>
  421. <include>configuration.xsl</include>
  422. <include>hdfs-default.xml</include>
  423. <include>ozone-default.xml</include>
  424. </includes>
  425. <followSymlinks>false</followSymlinks>
  426. </fileset>
  427. </filesets>
  428. </configuration>
  429. </plugin>
  430. </plugins>
  431. </build>
  432. <profiles>
  433. <!-- profile that starts ApacheDS KDC server -->
  434. <profile>
  435. <id>startKdc</id>
  436. <activation>
  437. <property>
  438. <name>startKdc</name>
  439. <value>true</value>
  440. </property>
  441. </activation>
  442. <build>
  443. <plugins>
  444. <plugin>
  445. <groupId>org.apache.maven.plugins</groupId>
  446. <artifactId>maven-enforcer-plugin</artifactId>
  447. <executions>
  448. <execution>
  449. <id>enforce-os</id>
  450. <goals>
  451. <goal>enforce</goal>
  452. </goals>
  453. <configuration>
  454. <rules>
  455. <!-- At present supports Mac and Unix OS family -->
  456. <requireOS>
  457. <family>mac</family>
  458. <family>unix</family>
  459. </requireOS>
  460. </rules>
  461. <fail>true</fail>
  462. </configuration>
  463. </execution>
  464. </executions>
  465. </plugin>
  466. <plugin>
  467. <groupId>org.apache.maven.plugins</groupId>
  468. <artifactId>maven-antrun-plugin</artifactId>
  469. <executions>
  470. <execution>
  471. <id>kdc</id>
  472. <phase>compile</phase>
  473. <goals>
  474. <goal>run</goal>
  475. </goals>
  476. <configuration>
  477. <target>
  478. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  479. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  480. <mkdir dir="${project.build.directory}/test-classes/kdc/downloads"/>
  481. <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"/>
  482. <untar src="${project.build.directory}/test-classes/kdc/downloads/apacheds-1.5.7.tar.gz" dest="${project.build.directory}/test-classes/kdc" compression="gzip" />
  483. <copy file="${kdc.resource.dir}/server.xml" toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/conf"/>
  484. <mkdir dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif"/>
  485. <copy toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif">
  486. <fileset dir="${kdc.resource.dir}/ldif"/>
  487. </copy>
  488. <chmod file="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/apacheds.sh" perm="775" />
  489. <exec dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/" executable="./apacheds.sh" spawn="true"/>
  490. </target>
  491. </configuration>
  492. </execution>
  493. <!-- On completion of graceful test phase: closes the ApacheDS KDC server -->
  494. <execution>
  495. <id>killKdc</id>
  496. <phase>test</phase>
  497. <goals>
  498. <goal>run</goal>
  499. </goals>
  500. <configuration>
  501. <target>
  502. <chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" />
  503. <exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" />
  504. </target>
  505. </configuration>
  506. </execution>
  507. </executions>
  508. </plugin>
  509. </plugins>
  510. </build>
  511. </profile>
  512. <profile>
  513. <id>parallel-tests</id>
  514. <build>
  515. <plugins>
  516. <plugin>
  517. <groupId>org.apache.hadoop</groupId>
  518. <artifactId>hadoop-maven-plugins</artifactId>
  519. <executions>
  520. <execution>
  521. <id>parallel-tests-createdir</id>
  522. <goals>
  523. <goal>parallel-tests-createdir</goal>
  524. </goals>
  525. </execution>
  526. </executions>
  527. </plugin>
  528. <plugin>
  529. <groupId>org.apache.maven.plugins</groupId>
  530. <artifactId>maven-surefire-plugin</artifactId>
  531. <configuration>
  532. <forkCount>${testsThreadCount}</forkCount>
  533. <reuseForks>false</reuseForks>
  534. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  535. <systemPropertyVariables>
  536. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  537. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  538. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  539. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  540. <!-- This is intentionally the same directory for all JUnit -->
  541. <!-- forks, for use in the very rare situation that -->
  542. <!-- concurrent tests need to coordinate, such as using lock -->
  543. <!-- files. -->
  544. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  545. <!-- Due to a Maven quirk, setting this to just -->
  546. <!-- surefire.forkNumber won't do the parameter substitution. -->
  547. <!-- Putting a prefix in front of it like "fork-" makes it -->
  548. <!-- work. -->
  549. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  550. </systemPropertyVariables>
  551. </configuration>
  552. </plugin>
  553. </plugins>
  554. </build>
  555. </profile>
  556. <!-- profile to test shell code -->
  557. <profile>
  558. <id>shelltest</id>
  559. <activation>
  560. <property>
  561. <name>!skipTests</name>
  562. </property>
  563. </activation>
  564. <build>
  565. <plugins>
  566. <plugin>
  567. <artifactId>maven-antrun-plugin</artifactId>
  568. <executions>
  569. <execution>
  570. <id>hdfs-test-bats-driver</id>
  571. <phase>test</phase>
  572. <goals>
  573. <goal>run</goal>
  574. </goals>
  575. <configuration>
  576. <target>
  577. <exec dir="src/test/scripts"
  578. executable="bash"
  579. failonerror="true">
  580. <arg value="./run-bats.sh" />
  581. </exec>
  582. </target>
  583. </configuration>
  584. </execution>
  585. </executions>
  586. </plugin>
  587. </plugins>
  588. </build>
  589. </profile>
  590. </profiles>
  591. </project>