pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  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.0.3-alpha</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-hdfs</artifactId>
  26. <version>2.0.3-alpha</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-src/main/jsp</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-src/main/jsp</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-src/main/jsp</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-src/main/jsp</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-source</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. <source>${project.build.directory}/generated-src/main/jsp</source>
  303. </sources>
  304. </configuration>
  305. </execution>
  306. </executions>
  307. </plugin>
  308. <plugin>
  309. <groupId>org.apache.maven.plugins</groupId>
  310. <artifactId>maven-antrun-plugin</artifactId>
  311. <configuration>
  312. <skipTests>false</skipTests>
  313. </configuration>
  314. <executions>
  315. <execution>
  316. <id>create-protobuf-generated-sources-directory</id>
  317. <phase>initialize</phase>
  318. <goals>
  319. <goal>run</goal>
  320. </goals>
  321. <configuration>
  322. <target>
  323. <mkdir dir="target/generated-sources/java" />
  324. </target>
  325. </configuration>
  326. </execution>
  327. <execution>
  328. <id>create-web-xmls</id>
  329. <phase>compile</phase>
  330. <goals>
  331. <goal>run</goal>
  332. </goals>
  333. <configuration>
  334. <target>
  335. <loadfile property="hdfs.servlet.definitions" srcFile="${project.build.directory}/hdfs-jsp-servlet-definitions.xml"/>
  336. <loadfile property="secondary.servlet.definitions" srcFile="${project.build.directory}/secondary-jsp-servlet-definitions.xml"/>
  337. <loadfile property="datanode.servlet.definitions" srcFile="${project.build.directory}/datanode-jsp-servlet-definitions.xml"/>
  338. <loadfile property="journal.servlet.definitions" srcFile="${project.build.directory}/journal-jsp-servlet-definitions.xml"/>
  339. <echoproperties destfile="${project.build.directory}/webxml.properties">
  340. <propertyset>
  341. <propertyref regex=".*.servlet.definitions"/>
  342. </propertyset>
  343. </echoproperties>
  344. <filter filtersfile="${project.build.directory}/webxml.properties"/>
  345. <copy file="${basedir}/src/main/webapps/proto-hdfs-web.xml"
  346. tofile="${project.build.directory}/webapps/hdfs/WEB-INF/web.xml"
  347. filtering="true"/>
  348. <copy file="${basedir}/src/main/webapps/proto-secondary-web.xml"
  349. tofile="${project.build.directory}/webapps/secondary/WEB-INF/web.xml"
  350. filtering="true"/>
  351. <copy file="${basedir}/src/main/webapps/proto-datanode-web.xml"
  352. tofile="${project.build.directory}/webapps/datanode/WEB-INF/web.xml"
  353. filtering="true"/>
  354. <copy file="${basedir}/src/main/webapps/proto-journal-web.xml"
  355. tofile="${project.build.directory}/webapps/journal/WEB-INF/web.xml"
  356. filtering="true"/>
  357. <copy toDir="${project.build.directory}/webapps">
  358. <fileset dir="${basedir}/src/main/webapps">
  359. <exclude name="**/*.jsp"/>
  360. <exclude name="**/proto-*-web.xml"/>
  361. </fileset>
  362. </copy>
  363. </target>
  364. </configuration>
  365. </execution>
  366. <execution>
  367. <id>create-log-dir</id>
  368. <phase>process-test-resources</phase>
  369. <goals>
  370. <goal>run</goal>
  371. </goals>
  372. <configuration>
  373. <target>
  374. <delete dir="${test.build.data}"/>
  375. <mkdir dir="${test.build.data}"/>
  376. <mkdir dir="${hadoop.log.dir}"/>
  377. <copy todir="${project.build.directory}/test-classes/webapps">
  378. <fileset dir="${project.build.directory}/webapps">
  379. <exclude name="proto-*-web.xml"/>
  380. </fileset>
  381. </copy>
  382. </target>
  383. </configuration>
  384. </execution>
  385. <execution>
  386. <phase>pre-site</phase>
  387. <goals>
  388. <goal>run</goal>
  389. </goals>
  390. <configuration>
  391. <tasks>
  392. <copy file="src/main/resources/hdfs-default.xml" todir="src/site/resources"/>
  393. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  394. </tasks>
  395. </configuration>
  396. </execution>
  397. </executions>
  398. </plugin>
  399. <plugin>
  400. <groupId>org.codehaus.mojo</groupId>
  401. <artifactId>exec-maven-plugin</artifactId>
  402. <executions>
  403. <execution>
  404. <id>compile-proto</id>
  405. <phase>generate-sources</phase>
  406. <goals>
  407. <goal>exec</goal>
  408. </goals>
  409. <configuration>
  410. <executable>protoc</executable>
  411. <arguments>
  412. <argument>-I../../hadoop-common-project/hadoop-common/src/main/proto/</argument>
  413. <argument>-Isrc/main/proto/</argument>
  414. <argument>--java_out=target/generated-sources/java</argument>
  415. <argument>src/main/proto/hdfs.proto</argument>
  416. <argument>src/main/proto/GetUserMappingsProtocol.proto</argument>
  417. <argument>src/main/proto/HAZKInfo.proto</argument>
  418. <argument>src/main/proto/InterDatanodeProtocol.proto</argument>
  419. <argument>src/main/proto/JournalProtocol.proto</argument>
  420. <argument>src/main/proto/RefreshAuthorizationPolicyProtocol.proto</argument>
  421. <argument>src/main/proto/RefreshUserMappingsProtocol.proto</argument>
  422. <argument>src/main/proto/datatransfer.proto</argument>
  423. </arguments>
  424. </configuration>
  425. </execution>
  426. <execution>
  427. <id>compile-proto-datanode</id>
  428. <phase>generate-sources</phase>
  429. <goals>
  430. <goal>exec</goal>
  431. </goals>
  432. <configuration>
  433. <executable>protoc</executable>
  434. <arguments>
  435. <argument>-I../../hadoop-common-project/hadoop-common/src/main/proto/</argument>
  436. <argument>-Isrc/main/proto/</argument>
  437. <argument>--java_out=target/generated-sources/java</argument>
  438. <argument>src/main/proto/ClientDatanodeProtocol.proto</argument>
  439. <argument>src/main/proto/DatanodeProtocol.proto</argument>
  440. </arguments>
  441. </configuration>
  442. </execution>
  443. <execution>
  444. <id>compile-proto-namenode</id>
  445. <phase>generate-sources</phase>
  446. <goals>
  447. <goal>exec</goal>
  448. </goals>
  449. <configuration>
  450. <executable>protoc</executable>
  451. <arguments>
  452. <argument>-I../../hadoop-common-project/hadoop-common/src/main/proto/</argument>
  453. <argument>-Isrc/main/proto/</argument>
  454. <argument>--java_out=target/generated-sources/java</argument>
  455. <argument>src/main/proto/ClientNamenodeProtocol.proto</argument>
  456. <argument>src/main/proto/NamenodeProtocol.proto</argument>
  457. </arguments>
  458. </configuration>
  459. </execution>
  460. <execution>
  461. <id>compile-proto-qjournal</id>
  462. <phase>generate-sources</phase>
  463. <goals>
  464. <goal>exec</goal>
  465. </goals>
  466. <configuration>
  467. <executable>protoc</executable>
  468. <arguments>
  469. <argument>-I../../hadoop-common-project/hadoop-common/src/main/proto/</argument>
  470. <argument>-Isrc/main/proto/</argument>
  471. <argument>--java_out=target/generated-sources/java</argument>
  472. <argument>src/main/proto/QJournalProtocol.proto</argument>
  473. </arguments>
  474. </configuration>
  475. </execution>
  476. </executions>
  477. </plugin>
  478. <plugin>
  479. <groupId>org.apache.maven.plugins</groupId>
  480. <artifactId>maven-javadoc-plugin</artifactId>
  481. <configuration>
  482. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  483. </configuration>
  484. </plugin>
  485. <plugin>
  486. <groupId>org.apache.rat</groupId>
  487. <artifactId>apache-rat-plugin</artifactId>
  488. <configuration>
  489. <excludes>
  490. <exclude>CHANGES.txt</exclude>
  491. <exclude>CHANGES.HDFS-1623.txt</exclude>
  492. <exclude>.idea/**</exclude>
  493. <exclude>src/main/conf/*</exclude>
  494. <exclude>src/main/docs/**</exclude>
  495. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  496. <exclude>dev-support/checkstyle*</exclude>
  497. <exclude>dev-support/jdiff/**</exclude>
  498. <exclude>dev-support/*tests</exclude>
  499. <exclude>src/main/native/*</exclude>
  500. <exclude>src/main/native/config/*</exclude>
  501. <exclude>src/main/native/m4/*</exclude>
  502. <exclude>src/test/empty-file</exclude>
  503. <exclude>src/test/all-tests</exclude>
  504. <exclude>src/test/resources/*.tgz</exclude>
  505. <exclude>src/test/resources/data*</exclude>
  506. <exclude>src/test/resources/editsStored*</exclude>
  507. <exclude>src/test/resources/empty-file</exclude>
  508. <exclude>src/main/native/util/tree.h</exclude>
  509. <exclude>src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj</exclude>
  510. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  511. <exclude>src/main/docs/releasenotes.html</exclude>
  512. <exclude>src/contrib/**</exclude>
  513. <exclude>src/site/resources/images/*</exclude>
  514. </excludes>
  515. </configuration>
  516. </plugin>
  517. </plugins>
  518. </build>
  519. <profiles>
  520. <profile>
  521. <id>windows</id>
  522. <activation>
  523. <activeByDefault>false</activeByDefault>
  524. <os>
  525. <family>windows</family>
  526. </os>
  527. </activation>
  528. <properties>
  529. <windows.build>true</windows.build>
  530. </properties>
  531. </profile>
  532. <profile>
  533. <id>native</id>
  534. <activation>
  535. <activeByDefault>false</activeByDefault>
  536. </activation>
  537. <build>
  538. <plugins>
  539. <plugin>
  540. <groupId>org.apache.maven.plugins</groupId>
  541. <artifactId>maven-antrun-plugin</artifactId>
  542. <executions>
  543. <execution>
  544. <id>make</id>
  545. <phase>compile</phase>
  546. <goals><goal>run</goal></goals>
  547. <configuration>
  548. <target>
  549. <mkdir dir="${project.build.directory}/native"/>
  550. <exec executable="cmake" dir="${project.build.directory}/native"
  551. failonerror="true">
  552. <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}"/>
  553. </exec>
  554. <exec executable="make" dir="${project.build.directory}/native" failonerror="true">
  555. <arg line="VERBOSE=1"/>
  556. </exec>
  557. <!-- The second make is a workaround for HADOOP-9215. It can
  558. be removed when version 2.6 of cmake is no longer supported . -->
  559. <exec executable="make" dir="${project.build.directory}/native" failonerror="true"></exec>
  560. </target>
  561. </configuration>
  562. </execution>
  563. <execution>
  564. <id>native_tests</id>
  565. <phase>test</phase>
  566. <goals><goal>run</goal></goals>
  567. <configuration>
  568. <target>
  569. <property name="compile_classpath" refid="maven.compile.classpath"/>
  570. <property name="test_classpath" refid="maven.test.classpath"/>
  571. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  572. <arg value="-c"/>
  573. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_libhdfs_threaded"/>
  574. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  575. <env key="SKIPTESTS" value="${skipTests}"/>
  576. </exec>
  577. <exec executable="sh" failonerror="true" dir="${project.build.directory}/native/">
  578. <arg value="-c"/>
  579. <arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_libhdfs_threaded"/>
  580. <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
  581. <env key="SKIPTESTS" value="${skipTests}"/>
  582. </exec>
  583. </target>
  584. </configuration>
  585. </execution>
  586. </executions>
  587. </plugin>
  588. </plugins>
  589. </build>
  590. </profile>
  591. </profiles>
  592. </project>