pom.xml 23 KB

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