pom.xml 24 KB

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