pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728
  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>
  14. <modelVersion>4.0.0</modelVersion>
  15. <groupId>org.apache.hadoop</groupId>
  16. <artifactId>hadoop-project</artifactId>
  17. <version>0.24.0-SNAPSHOT</version>
  18. <description>Apache Hadoop Project POM</description>
  19. <name>Apache Hadoop Project POM</name>
  20. <packaging>pom</packaging>
  21. <distributionManagement>
  22. <repository>
  23. <id>apache.releases.https</id>
  24. <name>Apache Release Distribution Repository</name>
  25. <url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
  26. </repository>
  27. <snapshotRepository>
  28. <id>apache.snapshots.https</id>
  29. <name>${distMgmtSnapshotsName}</name>
  30. <url>${distMgmtSnapshotsUrl}</url>
  31. </snapshotRepository>
  32. </distributionManagement>
  33. <repositories>
  34. <repository>
  35. <id>apache.snapshots.https</id>
  36. <name>${distMgmtSnapshotsName}</name>
  37. <url>${distMgmtSnapshotsUrl}</url>
  38. </repository>
  39. </repositories>
  40. <licenses>
  41. <license>
  42. <name>The Apache Software License, Version 2.0</name>
  43. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  44. </license>
  45. </licenses>
  46. <organization>
  47. <name>Apache Software Foundation</name>
  48. <url>http://www.apache.org</url>
  49. </organization>
  50. <properties>
  51. <failIfNoTests>false</failIfNoTests>
  52. <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
  53. <test.exclude>_</test.exclude>
  54. <test.exclude.pattern>_</test.exclude.pattern>
  55. <!-- platform encoding override -->
  56. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  57. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  58. <!-- These 2 versions are defined here becuase they are used in the *-docs -->
  59. <!-- module(s) for JDIFF generation from embedded ant in the antrun plugin -->
  60. <hadoop.annotations.version>${project.version}</hadoop.annotations.version>
  61. <jdiff.version>1.0.9</jdiff.version>
  62. <hadoop.assemblies.version>${project.version}</hadoop.assemblies.version>
  63. <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  64. <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
  65. <commons-daemon.version>1.0.3</commons-daemon.version>
  66. <test.build.dir>${project.build.directory}/test-dir</test.build.dir>
  67. <test.build.data>${test.build.dir}</test.build.data>
  68. </properties>
  69. <dependencyManagement>
  70. <dependencies>
  71. <dependency>
  72. <groupId>jdiff</groupId>
  73. <artifactId>jdiff</artifactId>
  74. <version>${jdiff.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.hadoop</groupId>
  78. <artifactId>hadoop-assemblies</artifactId>
  79. <version>${hadoop.assemblies.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.hadoop</groupId>
  83. <artifactId>hadoop-annotations</artifactId>
  84. <version>${hadoop.annotations.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.hadoop</groupId>
  88. <artifactId>hadoop-common</artifactId>
  89. <version>${project.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.hadoop</groupId>
  93. <artifactId>hadoop-common</artifactId>
  94. <version>${project.version}</version>
  95. <type>test-jar</type>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.hadoop</groupId>
  99. <artifactId>hadoop-auth</artifactId>
  100. <version>${project.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.google.guava</groupId>
  104. <artifactId>guava</artifactId>
  105. <version>r09</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>commons-cli</groupId>
  109. <artifactId>commons-cli</artifactId>
  110. <version>1.2</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.apache.commons</groupId>
  114. <artifactId>commons-math</artifactId>
  115. <version>2.1</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>xmlenc</groupId>
  119. <artifactId>xmlenc</artifactId>
  120. <version>0.52</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>commons-httpclient</groupId>
  124. <artifactId>commons-httpclient</artifactId>
  125. <version>3.1</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>commons-codec</groupId>
  129. <artifactId>commons-codec</artifactId>
  130. <version>1.4</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>commons-net</groupId>
  134. <artifactId>commons-net</artifactId>
  135. <version>1.4.1</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>javax.servlet</groupId>
  139. <artifactId>servlet-api</artifactId>
  140. <version>2.5</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.mortbay.jetty</groupId>
  144. <artifactId>jetty</artifactId>
  145. <version>6.1.26</version>
  146. <exclusions>
  147. <exclusion>
  148. <groupId>org.mortbay.jetty</groupId>
  149. <artifactId>servlet-api</artifactId>
  150. </exclusion>
  151. </exclusions>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.mortbay.jetty</groupId>
  155. <artifactId>jetty-util</artifactId>
  156. <version>6.1.26</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>asm</groupId>
  160. <artifactId>asm</artifactId>
  161. <version>3.2</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.sun.jersey</groupId>
  165. <artifactId>jersey-core</artifactId>
  166. <version>1.8</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.sun.jersey</groupId>
  170. <artifactId>jersey-json</artifactId>
  171. <version>1.8</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>com.sun.jersey</groupId>
  175. <artifactId>jersey-server</artifactId>
  176. <version>1.8</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>tomcat</groupId>
  180. <artifactId>jasper-compiler</artifactId>
  181. <version>5.5.23</version>
  182. <exclusions>
  183. <exclusion>
  184. <groupId>javax.servlet</groupId>
  185. <artifactId>jsp-api</artifactId>
  186. </exclusion>
  187. <exclusion>
  188. <groupId>ant</groupId>
  189. <artifactId>ant</artifactId>
  190. </exclusion>
  191. </exclusions>
  192. </dependency>
  193. <dependency>
  194. <groupId>tomcat</groupId>
  195. <artifactId>jasper-runtime</artifactId>
  196. <version>5.5.23</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>javax.servlet.jsp</groupId>
  200. <artifactId>jsp-api</artifactId>
  201. <version>2.1</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>commons-el</groupId>
  205. <artifactId>commons-el</artifactId>
  206. <version>1.0</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>commons-logging</groupId>
  210. <artifactId>commons-logging</artifactId>
  211. <version>1.1.1</version>
  212. <exclusions>
  213. <exclusion>
  214. <groupId>avalon-framework</groupId>
  215. <artifactId>avalon-framework</artifactId>
  216. </exclusion>
  217. <exclusion>
  218. <groupId>logkit</groupId>
  219. <artifactId>logkit</artifactId>
  220. </exclusion>
  221. <exclusion>
  222. <groupId>javax.servlet</groupId>
  223. <artifactId>servlet-api</artifactId>
  224. </exclusion>
  225. </exclusions>
  226. </dependency>
  227. <dependency>
  228. <groupId>commons-logging</groupId>
  229. <artifactId>commons-logging-api</artifactId>
  230. <version>1.1</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>log4j</groupId>
  234. <artifactId>log4j</artifactId>
  235. <version>1.2.15</version>
  236. <exclusions>
  237. <exclusion>
  238. <groupId>com.sun.jdmk</groupId>
  239. <artifactId>jmxtools</artifactId>
  240. </exclusion>
  241. <exclusion>
  242. <groupId>com.sun.jmx</groupId>
  243. <artifactId>jmxri</artifactId>
  244. </exclusion>
  245. <exclusion>
  246. <groupId>javax.mail</groupId>
  247. <artifactId>mail</artifactId>
  248. </exclusion>
  249. <exclusion>
  250. <groupId>javax.jms</groupId>
  251. <artifactId>jmx</artifactId>
  252. </exclusion>
  253. <exclusion>
  254. <groupId>javax.jms</groupId>
  255. <artifactId>jms</artifactId>
  256. </exclusion>
  257. </exclusions>
  258. </dependency>
  259. <dependency>
  260. <groupId>net.java.dev.jets3t</groupId>
  261. <artifactId>jets3t</artifactId>
  262. <version>0.6.1</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.apache.mina</groupId>
  266. <artifactId>mina-core</artifactId>
  267. <version>2.0.0-M5</version>
  268. </dependency>
  269. <dependency>
  270. <groupId>org.apache.ftpserver</groupId>
  271. <artifactId>ftplet-api</artifactId>
  272. <version>1.0.0</version>
  273. </dependency>
  274. <dependency>
  275. <groupId>org.apache.ftpserver</groupId>
  276. <artifactId>ftpserver-core</artifactId>
  277. <version>1.0.0</version>
  278. </dependency>
  279. <dependency>
  280. <groupId>org.apache.ftpserver</groupId>
  281. <artifactId>ftpserver-deprecated</artifactId>
  282. <version>1.0.0-M2</version>
  283. </dependency>
  284. <dependency>
  285. <groupId>junit</groupId>
  286. <artifactId>junit</artifactId>
  287. <version>4.8.1</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>commons-lang</groupId>
  291. <artifactId>commons-lang</artifactId>
  292. <version>2.5</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>commons-collections</groupId>
  296. <artifactId>commons-collections</artifactId>
  297. <version>3.2.1</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>commons-configuration</groupId>
  301. <artifactId>commons-configuration</artifactId>
  302. <version>1.6</version>
  303. </dependency>
  304. <dependency>
  305. <groupId>hsqldb</groupId>
  306. <artifactId>hsqldb</artifactId>
  307. <version>1.8.0.7</version>
  308. </dependency>
  309. <dependency>
  310. <groupId>org.slf4j</groupId>
  311. <artifactId>slf4j-api</artifactId>
  312. <version>1.5.11</version>
  313. </dependency>
  314. <dependency>
  315. <groupId>org.slf4j</groupId>
  316. <artifactId>slf4j-log4j12</artifactId>
  317. <version>1.5.11</version>
  318. </dependency>
  319. <dependency>
  320. <groupId>org.eclipse.jdt</groupId>
  321. <artifactId>core</artifactId>
  322. <version>3.1.1</version>
  323. </dependency>
  324. <dependency>
  325. <groupId>oro</groupId>
  326. <artifactId>oro</artifactId>
  327. <version>2.0.8</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>org.codehaus.jackson</groupId>
  331. <artifactId>jackson-mapper-asl</artifactId>
  332. <version>1.7.1</version>
  333. </dependency>
  334. <dependency>
  335. <groupId>org.aspectj</groupId>
  336. <artifactId>aspectjtools</artifactId>
  337. <version>1.6.5</version>
  338. </dependency>
  339. <dependency>
  340. <groupId>org.aspectj</groupId>
  341. <artifactId>aspectjrt</artifactId>
  342. <version>1.6.5</version>
  343. </dependency>
  344. <dependency>
  345. <groupId>org.mockito</groupId>
  346. <artifactId>mockito-all</artifactId>
  347. <version>1.8.5</version>
  348. </dependency>
  349. <dependency>
  350. <groupId>org.apache.avro</groupId>
  351. <artifactId>avro</artifactId>
  352. <version>1.5.3</version>
  353. </dependency>
  354. <dependency>
  355. <groupId>org.apache.avro</groupId>
  356. <artifactId>avro-ipc</artifactId>
  357. <version>1.5.3</version>
  358. </dependency>
  359. <dependency>
  360. <groupId>net.sf.kosmosfs</groupId>
  361. <artifactId>kfs</artifactId>
  362. <version>0.3</version>
  363. </dependency>
  364. <dependency>
  365. <groupId>org.apache.ant</groupId>
  366. <artifactId>ant</artifactId>
  367. <version>1.8.1</version>
  368. </dependency>
  369. <dependency>
  370. <groupId>com.google.protobuf</groupId>
  371. <artifactId>protobuf-java</artifactId>
  372. <version>2.4.0a</version>
  373. </dependency>
  374. <dependency>
  375. <groupId>commons-daemon</groupId>
  376. <artifactId>commons-daemon</artifactId>
  377. <version>${commons-daemon.version}</version>
  378. </dependency>
  379. </dependencies>
  380. </dependencyManagement>
  381. <build>
  382. <pluginManagement>
  383. <plugins>
  384. <plugin>
  385. <groupId>org.apache.maven.plugins</groupId>
  386. <artifactId>maven-enforcer-plugin</artifactId>
  387. <version>1.0</version>
  388. </plugin>
  389. <plugin>
  390. <groupId>org.apache.maven.plugins</groupId>
  391. <artifactId>maven-compiler-plugin</artifactId>
  392. <version>2.3.2</version>
  393. </plugin>
  394. <plugin>
  395. <groupId>org.apache.maven.plugins</groupId>
  396. <artifactId>maven-dependency-plugin</artifactId>
  397. <version>2.1</version>
  398. </plugin>
  399. <plugin>
  400. <groupId>org.codehaus.mojo</groupId>
  401. <artifactId>build-helper-maven-plugin</artifactId>
  402. <version>1.5</version>
  403. </plugin>
  404. <plugin>
  405. <groupId>org.apache.maven.plugins</groupId>
  406. <artifactId>maven-surefire-plugin</artifactId>
  407. <version>2.6</version>
  408. </plugin>
  409. <plugin>
  410. <groupId>org.apache.maven.plugins</groupId>
  411. <artifactId>maven-jar-plugin</artifactId>
  412. <version>2.3.1</version>
  413. </plugin>
  414. <plugin>
  415. <groupId>org.apache.maven.plugins</groupId>
  416. <artifactId>maven-assembly-plugin</artifactId>
  417. <version>2.2-beta-3</version>
  418. </plugin>
  419. <plugin>
  420. <groupId>org.apache.maven.plugins</groupId>
  421. <artifactId>maven-javadoc-plugin</artifactId>
  422. <version>2.7</version>
  423. </plugin>
  424. <plugin>
  425. <groupId>org.apache.maven.plugins</groupId>
  426. <artifactId>maven-antrun-plugin</artifactId>
  427. <version>1.6</version>
  428. </plugin>
  429. <plugin>
  430. <groupId>org.apache.maven.plugins</groupId>
  431. <artifactId>maven-war-plugin</artifactId>
  432. <version>2.1</version>
  433. </plugin>
  434. <plugin>
  435. <groupId>org.codehaus.mojo</groupId>
  436. <artifactId>findbugs-maven-plugin</artifactId>
  437. <version>2.3.2</version>
  438. </plugin>
  439. <plugin>
  440. <groupId>com.atlassian.maven.plugins</groupId>
  441. <artifactId>maven-clover2-plugin</artifactId>
  442. <version>3.0.5</version>
  443. </plugin>
  444. <plugin>
  445. <groupId>org.apache.maven.plugins</groupId>
  446. <artifactId>maven-checkstyle-plugin</artifactId>
  447. <version>2.6</version>
  448. </plugin>
  449. <plugin>
  450. <groupId>org.apache.rat</groupId>
  451. <artifactId>apache-rat-plugin</artifactId>
  452. <version>0.7</version>
  453. </plugin>
  454. <plugin>
  455. <groupId>org.codehaus.mojo</groupId>
  456. <artifactId>native-maven-plugin</artifactId>
  457. <version>1.0-alpha-7</version>
  458. </plugin>
  459. <plugin>
  460. <groupId>org.codehaus.mojo</groupId>
  461. <artifactId>make-maven-plugin</artifactId>
  462. <version>1.0-beta-1</version>
  463. </plugin>
  464. <plugin>
  465. <groupId>org.apache.maven.plugins</groupId>
  466. <artifactId>maven-source-plugin</artifactId>
  467. <version>2.1.2</version>
  468. </plugin>
  469. <plugin>
  470. <groupId>org.apache.maven.plugins</groupId>
  471. <artifactId>maven-deploy-plugin</artifactId>
  472. <version>2.5</version>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.apache.avro</groupId>
  476. <artifactId>avro-maven-plugin</artifactId>
  477. <version>1.5.3</version>
  478. </plugin>
  479. <plugin>
  480. <groupId>org.codehaus.mojo.jspc</groupId>
  481. <artifactId>jspc-maven-plugin</artifactId>
  482. <version>2.0-alpha-3</version>
  483. </plugin>
  484. <plugin>
  485. <groupId>org.apache.maven.plugins</groupId>
  486. <artifactId>maven-site-plugin</artifactId>
  487. <version>2.1.1</version>
  488. </plugin>
  489. <plugin>
  490. <groupId>org.apache.maven.plugins</groupId>
  491. <artifactId>maven-project-info-reports-plugin</artifactId>
  492. <version>2.4</version>
  493. </plugin>
  494. <plugin>
  495. <groupId>org.codehaus.mojo</groupId>
  496. <artifactId>exec-maven-plugin</artifactId>
  497. <version>1.2</version>
  498. </plugin>
  499. </plugins>
  500. </pluginManagement>
  501. <plugins>
  502. <plugin>
  503. <groupId>org.apache.maven.plugins</groupId>
  504. <artifactId>maven-enforcer-plugin</artifactId>
  505. <inherited>false</inherited>
  506. <configuration>
  507. <rules>
  508. <requireMavenVersion>
  509. <version>[3.0.0,)</version>
  510. </requireMavenVersion>
  511. <requireJavaVersion>
  512. <version>1.6</version>
  513. </requireJavaVersion>
  514. </rules>
  515. </configuration>
  516. <executions>
  517. <execution>
  518. <id>clean</id>
  519. <goals>
  520. <goal>enforce</goal>
  521. </goals>
  522. <phase>pre-clean</phase>
  523. </execution>
  524. <execution>
  525. <id>default</id>
  526. <goals>
  527. <goal>enforce</goal>
  528. </goals>
  529. <phase>validate</phase>
  530. </execution>
  531. <execution>
  532. <id>site</id>
  533. <goals>
  534. <goal>enforce</goal>
  535. </goals>
  536. <phase>pre-site</phase>
  537. </execution>
  538. </executions>
  539. </plugin>
  540. <plugin>
  541. <groupId>org.apache.maven.plugins</groupId>
  542. <artifactId>maven-antrun-plugin</artifactId>
  543. <executions>
  544. <execution>
  545. <id>create-testdirs</id>
  546. <phase>validate</phase>
  547. <goals>
  548. <goal>run</goal>
  549. </goals>
  550. <configuration>
  551. <target>
  552. <mkdir dir="${test.build.dir}"/>
  553. <mkdir dir="${test.build.data}"/>
  554. </target>
  555. </configuration>
  556. </execution>
  557. </executions>
  558. </plugin>
  559. <plugin>
  560. <groupId>org.apache.maven.plugins</groupId>
  561. <artifactId>maven-compiler-plugin</artifactId>
  562. <configuration>
  563. <source>1.6</source>
  564. <target>1.6</target>
  565. </configuration>
  566. </plugin>
  567. <plugin>
  568. <groupId>org.apache.maven.plugins</groupId>
  569. <artifactId>maven-surefire-plugin</artifactId>
  570. <configuration>
  571. <forkMode>always</forkMode>
  572. <forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
  573. <argLine>-Xmx1024m</argLine>
  574. <environmentVariables>
  575. <LD_LIBRARY_PATH>${env.LD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib</LD_LIBRARY_PATH>
  576. </environmentVariables>
  577. <systemPropertyVariables>
  578. <!-- TODO: all references in testcases should be updated to this default -->
  579. <test.build.dir>${test.build.dir}</test.build.dir>
  580. <hadoop.tmp.dir>${hadoop.tmp.dir}</hadoop.tmp.dir>
  581. <test.build.data>${test.build.data}</test.build.data>
  582. <test.build.webapps>${test.build.webapps}</test.build.webapps>
  583. <test.cache.data>${test.cache.data}</test.cache.data>
  584. <hadoop.log.dir>${hadoop.log.dir}</hadoop.log.dir>
  585. <test.build.classes>${test.build.classes}</test.build.classes>
  586. <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
  587. <java.security.krb5.conf>${basedir}/src/test/resources/krb5.conf</java.security.krb5.conf>
  588. </systemPropertyVariables>
  589. <includes>
  590. <include>**/Test*.java</include>
  591. </includes>
  592. <excludes>
  593. <exclude>**/${test.exclude}.java</exclude>
  594. <exclude>${test.exclude.pattern}</exclude>
  595. <exclude>**/Test*$*.java</exclude>
  596. </excludes>
  597. </configuration>
  598. </plugin>
  599. </plugins>
  600. </build>
  601. <profiles>
  602. <profile>
  603. <id>os.linux</id>
  604. <activation>
  605. <os>
  606. <family>!Mac</family>
  607. </os>
  608. </activation>
  609. <properties>
  610. <build.platform>${os.name}-${os.arch}-${sun.arch.data.model}</build.platform>
  611. </properties>
  612. <dependencies>
  613. <dependency>
  614. <groupId>jdk.tools</groupId>
  615. <artifactId>jdk.tools</artifactId>
  616. <version>1.6</version>
  617. <scope>system</scope>
  618. <systemPath>${env.JAVA_HOME}/lib/tools.jar</systemPath>
  619. </dependency>
  620. </dependencies>
  621. </profile>
  622. <profile>
  623. <id>os.mac</id>
  624. <activation>
  625. <os>
  626. <family>Mac</family>
  627. </os>
  628. </activation>
  629. <properties>
  630. <build.platform>Mac_OS_X-${sun.arch.data.model}</build.platform>
  631. </properties>
  632. </profile>
  633. <profile>
  634. <id>clover</id>
  635. <activation>
  636. <activeByDefault>false</activeByDefault>
  637. <property>
  638. <name>clover</name>
  639. </property>
  640. </activation>
  641. <properties>
  642. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  643. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  644. </properties>
  645. <build>
  646. <plugins>
  647. <plugin>
  648. <groupId>com.atlassian.maven.plugins</groupId>
  649. <artifactId>maven-clover2-plugin</artifactId>
  650. <configuration>
  651. <includesTestSourceRoots>true</includesTestSourceRoots>
  652. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  653. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  654. <targetPercentage>50%</targetPercentage>
  655. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  656. <generateHtml>true</generateHtml>
  657. <generateXml>true</generateXml>
  658. </configuration>
  659. <executions>
  660. <execution>
  661. <id>setup</id>
  662. <phase>generate-sources</phase>
  663. <goals>
  664. <goal>setup</goal>
  665. </goals>
  666. </execution>
  667. <execution>
  668. <id>clover</id>
  669. <phase>test</phase>
  670. <goals>
  671. <goal>clover</goal>
  672. </goals>
  673. </execution>
  674. </executions>
  675. </plugin>
  676. </plugins>
  677. </build>
  678. </profile>
  679. <profile>
  680. <id>test-patch</id>
  681. <activation>
  682. <activeByDefault>false</activeByDefault>
  683. </activation>
  684. <build>
  685. <plugins>
  686. <plugin>
  687. <groupId>org.apache.maven.plugins</groupId>
  688. <artifactId>maven-compiler-plugin</artifactId>
  689. <configuration>
  690. <fork>true</fork>
  691. <source>1.6</source>
  692. <target>1.6</target>
  693. <compilerArguments>
  694. <Xlint/>
  695. <Xmaxwarns>9999</Xmaxwarns>
  696. </compilerArguments>
  697. </configuration>
  698. </plugin>
  699. </plugins>
  700. </build>
  701. </profile>
  702. </profiles>
  703. </project>