pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  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>2.1.1-beta</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-hdfs</artifactId>
  26. <version>2.1.1-beta</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. <is.hadoop.component>true</is.hadoop.component>
  33. <require.fuse>false</require.fuse>
  34. <require.libwebhdfs>false</require.libwebhdfs>
  35. </properties>
  36. <dependencies>
  37. <dependency>
  38. <groupId>org.apache.hadoop</groupId>
  39. <artifactId>hadoop-annotations</artifactId>
  40. <scope>provided</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.apache.hadoop</groupId>
  44. <artifactId>hadoop-auth</artifactId>
  45. <scope>provided</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.hadoop</groupId>
  49. <artifactId>hadoop-common</artifactId>
  50. <scope>provided</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.hadoop</groupId>
  54. <artifactId>hadoop-common</artifactId>
  55. <scope>test</scope>
  56. <type>test-jar</type>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.zookeeper</groupId>
  60. <artifactId>zookeeper</artifactId>
  61. <type>test-jar</type>
  62. <scope>test</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.google.guava</groupId>
  66. <artifactId>guava</artifactId>
  67. <scope>compile</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.mortbay.jetty</groupId>
  71. <artifactId>jetty</artifactId>
  72. <scope>compile</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.mortbay.jetty</groupId>
  76. <artifactId>jetty-util</artifactId>
  77. <scope>compile</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.sun.jersey</groupId>
  81. <artifactId>jersey-core</artifactId>
  82. <scope>compile</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.sun.jersey</groupId>
  86. <artifactId>jersey-server</artifactId>
  87. <scope>compile</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>commons-cli</groupId>
  91. <artifactId>commons-cli</artifactId>
  92. <scope>compile</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>commons-codec</groupId>
  96. <artifactId>commons-codec</artifactId>
  97. <scope>compile</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>commons-io</groupId>
  101. <artifactId>commons-io</artifactId>
  102. <scope>compile</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>commons-lang</groupId>
  106. <artifactId>commons-lang</artifactId>
  107. <scope>compile</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>commons-logging</groupId>
  111. <artifactId>commons-logging</artifactId>
  112. <scope>compile</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>commons-daemon</groupId>
  116. <artifactId>commons-daemon</artifactId>
  117. <scope>compile</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>javax.servlet.jsp</groupId>
  121. <artifactId>jsp-api</artifactId>
  122. <scope>compile</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>log4j</groupId>
  126. <artifactId>log4j</artifactId>
  127. <scope>compile</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.google.protobuf</groupId>
  131. <artifactId>protobuf-java</artifactId>
  132. <scope>compile</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>javax.servlet</groupId>
  136. <artifactId>servlet-api</artifactId>
  137. <scope>compile</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>junit</groupId>
  141. <artifactId>junit</artifactId>
  142. <scope>test</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.mockito</groupId>
  146. <artifactId>mockito-all</artifactId>
  147. <scope>test</scope>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.slf4j</groupId>
  151. <artifactId>slf4j-log4j12</artifactId>
  152. <scope>provided</scope>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.codehaus.jackson</groupId>
  156. <artifactId>jackson-core-asl</artifactId>
  157. <scope>compile</scope>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.codehaus.jackson</groupId>
  161. <artifactId>jackson-mapper-asl</artifactId>
  162. <scope>compile</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>tomcat</groupId>
  166. <artifactId>jasper-runtime</artifactId>
  167. <scope>compile</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>xmlenc</groupId>
  171. <artifactId>xmlenc</artifactId>
  172. <scope>compile</scope>
  173. </dependency>
  174. </dependencies>
  175. <build>
  176. <plugins>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-surefire-plugin</artifactId>
  180. <configuration>
  181. <properties>
  182. <property>
  183. <name>listener</name>
  184. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  185. </property>
  186. </properties>
  187. </configuration>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.codehaus.mojo.jspc</groupId>
  191. <artifactId>jspc-maven-plugin</artifactId>
  192. <executions>
  193. <execution>
  194. <id>hdfs</id>
  195. <phase>generate-sources</phase>
  196. <goals>
  197. <goal>compile</goal>
  198. </goals>
  199. <configuration>
  200. <compile>false</compile>
  201. <workingDirectory>${project.build.directory}/generated-sources/java</workingDirectory>
  202. <webFragmentFile>${project.build.directory}/hdfs-jsp-servlet-definitions.xml</webFragmentFile>
  203. <packageName>org.apache.hadoop.hdfs.server.namenode</packageName>
  204. <sources>
  205. <directory>${basedir}/src/main/webapps/hdfs</directory>
  206. <includes>
  207. <include>*.jsp</include>
  208. </includes>
  209. </sources>
  210. </configuration>
  211. </execution>
  212. <execution>
  213. <id>secondary</id>
  214. <phase>generate-sources</phase>
  215. <goals>
  216. <goal>compile</goal>
  217. </goals>
  218. <configuration>
  219. <compile>false</compile>
  220. <workingDirectory>${project.build.directory}/generated-sources/java</workingDirectory>
  221. <webFragmentFile>${project.build.directory}/secondary-jsp-servlet-definitions.xml</webFragmentFile>
  222. <packageName>org.apache.hadoop.hdfs.server.namenode</packageName>
  223. <sources>
  224. <directory>${basedir}/src/main/webapps/secondary</directory>
  225. <includes>
  226. <include>*.jsp</include>
  227. </includes>
  228. </sources>
  229. </configuration>
  230. </execution>
  231. <execution>
  232. <id>journal</id>
  233. <phase>generate-sources</phase>
  234. <goals>
  235. <goal>compile</goal>
  236. </goals>
  237. <configuration>
  238. <compile>false</compile>
  239. <workingDirectory>${project.build.directory}/generated-sources/java</workingDirectory>
  240. <webFragmentFile>${project.build.directory}/journal-jsp-servlet-definitions.xml</webFragmentFile>
  241. <packageName>org.apache.hadoop.hdfs.server.journalservice</packageName>
  242. <sources>
  243. <directory>${basedir}/src/main/webapps/journal</directory>
  244. <includes>
  245. <include>*.jsp</include>
  246. </includes>
  247. </sources>
  248. </configuration>
  249. </execution>
  250. <execution>
  251. <id>datanode</id>
  252. <phase>generate-sources</phase>
  253. <goals>
  254. <goal>compile</goal>
  255. </goals>
  256. <configuration>
  257. <compile>false</compile>
  258. <workingDirectory>${project.build.directory}/generated-sources/java</workingDirectory>
  259. <webFragmentFile>${project.build.directory}/datanode-jsp-servlet-definitions.xml</webFragmentFile>
  260. <packageName>org.apache.hadoop.hdfs.server.datanode</packageName>
  261. <sources>
  262. <directory>${basedir}/src/main/webapps/datanode</directory>
  263. <includes>
  264. <include>*.jsp</include>
  265. </includes>
  266. </sources>
  267. </configuration>
  268. </execution>
  269. </executions>
  270. <dependencies>
  271. <dependency>
  272. <groupId>org.codehaus.mojo.jspc</groupId>
  273. <artifactId>jspc-compiler-tomcat5</artifactId>
  274. <version>2.0-alpha-3</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.slf4j</groupId>
  278. <artifactId>slf4j-log4j12</artifactId>
  279. <version>1.4.1</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>org.slf4j</groupId>
  283. <artifactId>jcl104-over-slf4j</artifactId>
  284. <version>1.4.1</version>
  285. </dependency>
  286. </dependencies>
  287. </plugin>
  288. <plugin>
  289. <groupId>org.codehaus.mojo</groupId>
  290. <artifactId>build-helper-maven-plugin</artifactId>
  291. <executions>
  292. <execution>
  293. <id>add-jsp-generated-sources-directory</id>
  294. <phase>generate-sources</phase>
  295. <goals>
  296. <goal>add-source</goal>
  297. </goals>
  298. <configuration>
  299. <sources>
  300. <source>${project.build.directory}/generated-sources/java</source>
  301. </sources>
  302. </configuration>
  303. </execution>
  304. </executions>
  305. </plugin>
  306. <plugin>
  307. <groupId>org.apache.maven.plugins</groupId>
  308. <artifactId>maven-antrun-plugin</artifactId>
  309. <configuration>
  310. <skipTests>false</skipTests>
  311. </configuration>
  312. <executions>
  313. <execution>
  314. <id>create-jsp-generated-sources-directory</id>
  315. <phase>initialize</phase>
  316. <goals>
  317. <goal>run</goal>
  318. </goals>
  319. <configuration>
  320. <target>
  321. <mkdir dir="${project.build.directory}/generated-sources/java" />
  322. </target>
  323. </configuration>
  324. </execution>
  325. <execution>
  326. <id>create-web-xmls</id>
  327. <phase>compile</phase>
  328. <goals>
  329. <goal>run</goal>
  330. </goals>
  331. <configuration>
  332. <target>
  333. <loadfile property="hdfs.servlet.definitions" srcFile="${project.build.directory}/hdfs-jsp-servlet-definitions.xml"/>
  334. <loadfile property="secondary.servlet.definitions" srcFile="${project.build.directory}/secondary-jsp-servlet-definitions.xml"/>
  335. <loadfile property="datanode.servlet.definitions" srcFile="${project.build.directory}/datanode-jsp-servlet-definitions.xml"/>
  336. <loadfile property="journal.servlet.definitions" srcFile="${project.build.directory}/journal-jsp-servlet-definitions.xml"/>
  337. <echoproperties destfile="${project.build.directory}/webxml.properties">
  338. <propertyset>
  339. <propertyref regex=".*.servlet.definitions"/>
  340. </propertyset>
  341. </echoproperties>
  342. <filter filtersfile="${project.build.directory}/webxml.properties"/>
  343. <copy file="${basedir}/src/main/webapps/proto-hdfs-web.xml"
  344. tofile="${project.build.directory}/webapps/hdfs/WEB-INF/web.xml"
  345. filtering="true"/>
  346. <copy file="${basedir}/src/main/webapps/proto-secondary-web.xml"
  347. tofile="${project.build.directory}/webapps/secondary/WEB-INF/web.xml"
  348. filtering="true"/>
  349. <copy file="${basedir}/src/main/webapps/proto-datanode-web.xml"
  350. tofile="${project.build.directory}/webapps/datanode/WEB-INF/web.xml"
  351. filtering="true"/>
  352. <copy file="${basedir}/src/main/webapps/proto-journal-web.xml"
  353. tofile="${project.build.directory}/webapps/journal/WEB-INF/web.xml"
  354. filtering="true"/>
  355. <copy toDir="${project.build.directory}/webapps">
  356. <fileset dir="${basedir}/src/main/webapps">
  357. <exclude name="**/*.jsp"/>
  358. <exclude name="**/proto-*-web.xml"/>
  359. </fileset>
  360. </copy>
  361. </target>
  362. </configuration>
  363. </execution>
  364. <execution>
  365. <id>create-log-dir</id>
  366. <phase>process-test-resources</phase>
  367. <goals>
  368. <goal>run</goal>
  369. </goals>
  370. <configuration>
  371. <target>
  372. <delete dir="${test.build.data}"/>
  373. <mkdir dir="${test.build.data}"/>
  374. <mkdir dir="${hadoop.log.dir}"/>
  375. <copy todir="${project.build.directory}/test-classes/webapps">
  376. <fileset dir="${project.build.directory}/webapps">
  377. <exclude name="proto-*-web.xml"/>
  378. </fileset>
  379. </copy>
  380. </target>
  381. </configuration>
  382. </execution>
  383. <execution>
  384. <phase>pre-site</phase>
  385. <goals>
  386. <goal>run</goal>
  387. </goals>
  388. <configuration>
  389. <tasks>
  390. <copy file="src/main/resources/hdfs-default.xml" todir="src/site/resources"/>
  391. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  392. </tasks>
  393. </configuration>
  394. </execution>
  395. </executions>
  396. </plugin>
  397. <plugin>
  398. <groupId>org.apache.hadoop</groupId>
  399. <artifactId>hadoop-maven-plugins</artifactId>
  400. <executions>
  401. <execution>
  402. <id>compile-protoc</id>
  403. <phase>generate-sources</phase>
  404. <goals>
  405. <goal>protoc</goal>
  406. </goals>
  407. <configuration>
  408. <protocVersion>${protobuf.version}</protocVersion>
  409. <protocCommand>${protoc.path}</protocCommand>
  410. <imports>
  411. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  412. <param>${basedir}/src/main/proto</param>
  413. </imports>
  414. <source>
  415. <directory>${basedir}/src/main/proto</directory>
  416. <includes>
  417. <include>HAZKInfo.proto</include>
  418. <include>InterDatanodeProtocol.proto</include>
  419. <include>JournalProtocol.proto</include>
  420. <include>datatransfer.proto</include>
  421. <include>hdfs.proto</include>
  422. </includes>
  423. </source>
  424. <output>${project.build.directory}/generated-sources/java</output>
  425. </configuration>
  426. </execution>
  427. <execution>
  428. <id>compile-protoc-datanode</id>
  429. <phase>generate-sources</phase>
  430. <goals>
  431. <goal>protoc</goal>
  432. </goals>
  433. <configuration>
  434. <protocVersion>${protobuf.version}</protocVersion>
  435. <protocCommand>${protoc.path}</protocCommand>
  436. <imports>
  437. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  438. <param>${basedir}/src/main/proto</param>
  439. </imports>
  440. <source>
  441. <directory>${basedir}/src/main/proto</directory>
  442. <includes>
  443. <include>ClientDatanodeProtocol.proto</include>
  444. <include>DatanodeProtocol.proto</include>
  445. </includes>
  446. </source>
  447. <output>${project.build.directory}/generated-sources/java</output>
  448. </configuration>
  449. </execution>
  450. <execution>
  451. <id>compile-protoc-namenode</id>
  452. <phase>generate-sources</phase>
  453. <goals>
  454. <goal>protoc</goal>
  455. </goals>
  456. <configuration>
  457. <protocVersion>${protobuf.version}</protocVersion>
  458. <protocCommand>${protoc.path}</protocCommand>
  459. <imports>
  460. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  461. <param>${basedir}/src/main/proto</param>
  462. </imports>
  463. <source>
  464. <directory>${basedir}/src/main/proto</directory>
  465. <includes>
  466. <include>ClientNamenodeProtocol.proto</include>
  467. <include>NamenodeProtocol.proto</include>
  468. </includes>
  469. </source>
  470. <output>${project.build.directory}/generated-sources/java</output>
  471. </configuration>
  472. </execution>
  473. <execution>
  474. <id>compile-protoc-qjournal</id>
  475. <phase>generate-sources</phase>
  476. <goals>
  477. <goal>protoc</goal>
  478. </goals>
  479. <configuration>
  480. <protocVersion>${protobuf.version}</protocVersion>
  481. <protocCommand>${protoc.path}</protocCommand>
  482. <imports>
  483. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  484. <param>${basedir}/src/main/proto</param>
  485. </imports>
  486. <source>
  487. <directory>${basedir}/src/main/proto</directory>
  488. <includes>
  489. <include>QJournalProtocol.proto</include>
  490. </includes>
  491. </source>
  492. <output>${project.build.directory}/generated-sources/java</output>
  493. </configuration>
  494. </execution>
  495. </executions>
  496. </plugin>
  497. <plugin>
  498. <groupId>org.apache.maven.plugins</groupId>
  499. <artifactId>maven-javadoc-plugin</artifactId>
  500. <configuration>
  501. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  502. </configuration>
  503. </plugin>
  504. <plugin>
  505. <groupId>org.apache.rat</groupId>
  506. <artifactId>apache-rat-plugin</artifactId>
  507. <configuration>
  508. <excludes>
  509. <exclude>CHANGES.txt</exclude>
  510. <exclude>CHANGES.HDFS-1623.txt</exclude>
  511. <exclude>.idea/**</exclude>
  512. <exclude>src/main/conf/*</exclude>
  513. <exclude>src/main/docs/**</exclude>
  514. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  515. <exclude>dev-support/checkstyle*</exclude>
  516. <exclude>dev-support/jdiff/**</exclude>
  517. <exclude>dev-support/*tests</exclude>
  518. <exclude>src/main/native/*</exclude>
  519. <exclude>src/main/native/config/*</exclude>
  520. <exclude>src/main/native/m4/*</exclude>
  521. <exclude>src/test/empty-file</exclude>
  522. <exclude>src/test/all-tests</exclude>
  523. <exclude>src/test/resources/*.tgz</exclude>
  524. <exclude>src/test/resources/data*</exclude>
  525. <exclude>src/test/resources/editsStored*</exclude>
  526. <exclude>src/test/resources/empty-file</exclude>
  527. <exclude>src/main/native/util/tree.h</exclude>
  528. <exclude>src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj</exclude>
  529. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  530. <exclude>src/main/docs/releasenotes.html</exclude>
  531. <exclude>src/contrib/**</exclude>
  532. <exclude>src/site/resources/images/*</exclude>
  533. </excludes>
  534. </configuration>
  535. </plugin>
  536. </plugins>
  537. </build>
  538. <profiles>
  539. <profile>
  540. <id>windows</id>
  541. <activation>
  542. <activeByDefault>false</activeByDefault>
  543. <os>
  544. <family>windows</family>
  545. </os>
  546. </activation>
  547. <properties>
  548. <windows.build>true</windows.build>
  549. </properties>
  550. </profile>
  551. <profile>
  552. <id>native</id>
  553. <activation>
  554. <activeByDefault>false</activeByDefault>
  555. </activation>
  556. <build>
  557. <plugins>
  558. <plugin>
  559. <groupId>org.apache.maven.plugins</groupId>
  560. <artifactId>maven-antrun-plugin</artifactId>
  561. <executions>
  562. <execution>
  563. <id>make</id>
  564. <phase>compile</phase>
  565. <goals><goal>run</goal></goals>
  566. <configuration>
  567. <target>
  568. <mkdir dir="${project.build.directory}/native"/>
  569. <exec executable="cmake" dir="${project.build.directory}/native"
  570. failonerror="true">
  571. <arg line="${basedir}/src/ -DGENERATED_JAVAH=${project.build.directory}/native/javah -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model} -DREQUIRE_LIBWEBHDFS=${require.libwebhdfs} -DREQUIRE_FUSE=${require.fuse}"/>
  572. </exec>
  573. <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
  574. <arg line="VERBOSE=1"/>
  575. </exec>
  576. <!-- The second make is a workaround for HADOOP-9215. It can
  577. be removed when version 2.6 of cmake is no longer supported . -->
  578. <exec executable="make" dir="${project.build.directory}/native" failonerror="true"></exec>
  579. </target>
  580. </configuration>
  581. </execution>
  582. <execution>
  583. <id>native_tests</id>
  584. <phase>test</phase>
  585. <goals><goal>run</goal></goals>
  586. <configuration>
  587. <target>
  588. <property name="compile_classpath" refid="maven.compile.classpath"/>
  589. <property name="test_classpath" refid="maven.test.classpath"/>
  590. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  591. <arg value="-c"/>
  592. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_libhdfs_threaded"/>
  593. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  594. <env key="SKIPTESTS" value="${skipTests}"/>
  595. </exec>
  596. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  597. <arg value="-c"/>
  598. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_libhdfs_threaded"/>
  599. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  600. <env key="SKIPTESTS" value="${skipTests}"/>
  601. </exec>
  602. </target>
  603. </configuration>
  604. </execution>
  605. </executions>
  606. </plugin>
  607. </plugins>
  608. </build>
  609. </profile>
  610. </profiles>
  611. </project>