pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  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.23.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. <licenses>
  34. <license>
  35. <name>The Apache Software License, Version 2.0</name>
  36. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  37. </license>
  38. </licenses>
  39. <organization>
  40. <name>Apache Software Foundation</name>
  41. <url>http://www.apache.org</url>
  42. </organization>
  43. <properties>
  44. <failIfNoTests>false</failIfNoTests>
  45. <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
  46. <test.exclude>_</test.exclude>
  47. <test.exclude.pattern>_</test.exclude.pattern>
  48. <!-- platform encoding override -->
  49. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  50. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  51. <!-- These 2 versions are defined here becuase they are used in the *-docs -->
  52. <!-- module(s) for JDIFF generation from embedded ant in the antrun plugin -->
  53. <hadoop.annotations.version>${project.version}</hadoop.annotations.version>
  54. <jdiff.version>1.0.9</jdiff.version>
  55. <hadoop.assemblies.version>${project.version}</hadoop.assemblies.version>
  56. <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  57. <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
  58. </properties>
  59. <dependencyManagement>
  60. <dependencies>
  61. <dependency>
  62. <groupId>jdiff</groupId>
  63. <artifactId>jdiff</artifactId>
  64. <version>${jdiff.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.hadoop</groupId>
  68. <artifactId>hadoop-assemblies</artifactId>
  69. <version>${hadoop.assemblies.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.hadoop</groupId>
  73. <artifactId>hadoop-annotations</artifactId>
  74. <version>${hadoop.annotations.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.hadoop</groupId>
  78. <artifactId>hadoop-common-docs</artifactId>
  79. <version>${project.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.hadoop</groupId>
  83. <artifactId>hadoop-common</artifactId>
  84. <version>${project.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.hadoop</groupId>
  88. <artifactId>hadoop-common</artifactId>
  89. <version>${project.version}</version>
  90. <type>test-jar</type>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.google.guava</groupId>
  94. <artifactId>guava</artifactId>
  95. <version>r09</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>commons-cli</groupId>
  99. <artifactId>commons-cli</artifactId>
  100. <version>1.2</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.commons</groupId>
  104. <artifactId>commons-math</artifactId>
  105. <version>2.1</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>xmlenc</groupId>
  109. <artifactId>xmlenc</artifactId>
  110. <version>0.52</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>commons-httpclient</groupId>
  114. <artifactId>commons-httpclient</artifactId>
  115. <version>3.1</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>commons-codec</groupId>
  119. <artifactId>commons-codec</artifactId>
  120. <version>1.4</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>commons-net</groupId>
  124. <artifactId>commons-net</artifactId>
  125. <version>1.4.1</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>javax.servlet</groupId>
  129. <artifactId>servlet-api</artifactId>
  130. <version>2.5</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.mortbay.jetty</groupId>
  134. <artifactId>jetty</artifactId>
  135. <version>6.1.26</version>
  136. <exclusions>
  137. <exclusion>
  138. <groupId>org.mortbay.jetty</groupId>
  139. <artifactId>servlet-api</artifactId>
  140. </exclusion>
  141. </exclusions>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.mortbay.jetty</groupId>
  145. <artifactId>jetty-util</artifactId>
  146. <version>6.1.26</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>tomcat</groupId>
  150. <artifactId>jasper-compiler</artifactId>
  151. <version>5.5.23</version>
  152. <exclusions>
  153. <exclusion>
  154. <groupId>javax.servlet</groupId>
  155. <artifactId>jsp-api</artifactId>
  156. </exclusion>
  157. <exclusion>
  158. <groupId>ant</groupId>
  159. <artifactId>ant</artifactId>
  160. </exclusion>
  161. </exclusions>
  162. </dependency>
  163. <dependency>
  164. <groupId>tomcat</groupId>
  165. <artifactId>jasper-runtime</artifactId>
  166. <version>5.5.23</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>javax.servlet.jsp</groupId>
  170. <artifactId>jsp-api</artifactId>
  171. <version>2.1</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>commons-el</groupId>
  175. <artifactId>commons-el</artifactId>
  176. <version>1.0</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>commons-logging</groupId>
  180. <artifactId>commons-logging</artifactId>
  181. <version>1.0.4</version>
  182. <exclusions>
  183. <exclusion>
  184. <groupId>avalon-framework</groupId>
  185. <artifactId>avalon-framework</artifactId>
  186. </exclusion>
  187. <exclusion>
  188. <groupId>logkit</groupId>
  189. <artifactId>logkit</artifactId>
  190. </exclusion>
  191. <exclusion>
  192. <groupId>javax.servlet</groupId>
  193. <artifactId>servlet-api</artifactId>
  194. </exclusion>
  195. </exclusions>
  196. </dependency>
  197. <dependency>
  198. <groupId>commons-logging</groupId>
  199. <artifactId>commons-logging-api</artifactId>
  200. <version>1.0.4</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>log4j</groupId>
  204. <artifactId>log4j</artifactId>
  205. <version>1.2.15</version>
  206. <exclusions>
  207. <exclusion>
  208. <groupId>com.sun.jdmk</groupId>
  209. <artifactId>jmxtools</artifactId>
  210. </exclusion>
  211. <exclusion>
  212. <groupId>com.sun.jmx</groupId>
  213. <artifactId>jmxri</artifactId>
  214. </exclusion>
  215. <exclusion>
  216. <groupId>javax.mail</groupId>
  217. <artifactId>mail</artifactId>
  218. </exclusion>
  219. <exclusion>
  220. <groupId>javax.jms</groupId>
  221. <artifactId>jmx</artifactId>
  222. </exclusion>
  223. <exclusion>
  224. <groupId>javax.jms</groupId>
  225. <artifactId>jms</artifactId>
  226. </exclusion>
  227. </exclusions>
  228. </dependency>
  229. <dependency>
  230. <groupId>net.java.dev.jets3t</groupId>
  231. <artifactId>jets3t</artifactId>
  232. <version>0.6.1</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.apache.mina</groupId>
  236. <artifactId>mina-core</artifactId>
  237. <version>2.0.0-M5</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.apache.ftpserver</groupId>
  241. <artifactId>ftplet-api</artifactId>
  242. <version>1.0.0</version>
  243. </dependency>
  244. <dependency>
  245. <groupId>org.apache.ftpserver</groupId>
  246. <artifactId>ftpserver-core</artifactId>
  247. <version>1.0.0</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.apache.ftpserver</groupId>
  251. <artifactId>ftpserver-deprecated</artifactId>
  252. <version>1.0.0-M2</version>
  253. </dependency>
  254. <dependency>
  255. <groupId>junit</groupId>
  256. <artifactId>junit</artifactId>
  257. <version>4.8.1</version>
  258. </dependency>
  259. <dependency>
  260. <groupId>commons-lang</groupId>
  261. <artifactId>commons-lang</artifactId>
  262. <version>2.5</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>commons-collections</groupId>
  266. <artifactId>commons-collections</artifactId>
  267. <version>3.2.1</version>
  268. </dependency>
  269. <dependency>
  270. <groupId>commons-configuration</groupId>
  271. <artifactId>commons-configuration</artifactId>
  272. <version>1.6</version>
  273. </dependency>
  274. <dependency>
  275. <groupId>hsqldb</groupId>
  276. <artifactId>hsqldb</artifactId>
  277. <version>1.8.0.7</version>
  278. </dependency>
  279. <dependency>
  280. <groupId>org.slf4j</groupId>
  281. <artifactId>slf4j-api</artifactId>
  282. <version>1.5.8</version>
  283. </dependency>
  284. <dependency>
  285. <groupId>org.slf4j</groupId>
  286. <artifactId>slf4j-log4j12</artifactId>
  287. <version>1.5.8</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>org.eclipse.jdt</groupId>
  291. <artifactId>core</artifactId>
  292. <version>3.1.1</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>oro</groupId>
  296. <artifactId>oro</artifactId>
  297. <version>2.0.8</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.codehaus.jackson</groupId>
  301. <artifactId>jackson-mapper-asl</artifactId>
  302. <version>1.5.2</version>
  303. </dependency>
  304. <dependency>
  305. <groupId>org.aspectj</groupId>
  306. <artifactId>aspectjrt</artifactId>
  307. <version>1.6.5</version>
  308. </dependency>
  309. <dependency>
  310. <groupId>org.mockito</groupId>
  311. <artifactId>mockito-all</artifactId>
  312. <version>1.8.5</version>
  313. </dependency>
  314. <dependency>
  315. <groupId>org.apache.hadoop</groupId>
  316. <artifactId>avro</artifactId>
  317. <version>1.3.2</version>
  318. <exclusions>
  319. <exclusion>
  320. <groupId>org.apache.ant</groupId>
  321. <artifactId>ant</artifactId>
  322. </exclusion>
  323. </exclusions>
  324. </dependency>
  325. <dependency>
  326. <groupId>net.sf.kosmosfs</groupId>
  327. <artifactId>kfs</artifactId>
  328. <version>0.3</version>
  329. </dependency>
  330. <dependency>
  331. <groupId>org.apache.ant</groupId>
  332. <artifactId>ant</artifactId>
  333. <version>1.8.1</version>
  334. </dependency>
  335. <dependency>
  336. <groupId>com.google.protobuf</groupId>
  337. <artifactId>protobuf-java</artifactId>
  338. <version>2.4.0a</version>
  339. </dependency>
  340. </dependencies>
  341. </dependencyManagement>
  342. <build>
  343. <pluginManagement>
  344. <plugins>
  345. <plugin>
  346. <groupId>org.apache.maven.plugins</groupId>
  347. <artifactId>maven-enforcer-plugin</artifactId>
  348. <version>1.0</version>
  349. </plugin>
  350. <plugin>
  351. <groupId>org.apache.maven.plugins</groupId>
  352. <artifactId>maven-compiler-plugin</artifactId>
  353. <version>2.3.2</version>
  354. </plugin>
  355. <plugin>
  356. <groupId>org.apache.maven.plugins</groupId>
  357. <artifactId>maven-dependency-plugin</artifactId>
  358. <version>2.1</version>
  359. </plugin>
  360. <plugin>
  361. <groupId>org.codehaus.mojo</groupId>
  362. <artifactId>build-helper-maven-plugin</artifactId>
  363. <version>1.5</version>
  364. </plugin>
  365. <plugin>
  366. <groupId>org.apache.maven.plugins</groupId>
  367. <artifactId>maven-surefire-plugin</artifactId>
  368. <version>2.6</version>
  369. </plugin>
  370. <plugin>
  371. <groupId>org.apache.maven.plugins</groupId>
  372. <artifactId>maven-jar-plugin</artifactId>
  373. <version>2.3.1</version>
  374. </plugin>
  375. <plugin>
  376. <groupId>org.apache.maven.plugins</groupId>
  377. <artifactId>maven-assembly-plugin</artifactId>
  378. <version>2.2-beta-3</version>
  379. </plugin>
  380. <plugin>
  381. <groupId>org.apache.maven.plugins</groupId>
  382. <artifactId>maven-javadoc-plugin</artifactId>
  383. <version>2.7</version>
  384. </plugin>
  385. <plugin>
  386. <groupId>org.apache.maven.plugins</groupId>
  387. <artifactId>maven-antrun-plugin</artifactId>
  388. <version>1.6</version>
  389. </plugin>
  390. <plugin>
  391. <groupId>org.apache.maven.plugins</groupId>
  392. <artifactId>maven-war-plugin</artifactId>
  393. <version>2.1</version>
  394. </plugin>
  395. <plugin>
  396. <groupId>org.codehaus.mojo</groupId>
  397. <artifactId>findbugs-maven-plugin</artifactId>
  398. <version>2.3.2</version>
  399. </plugin>
  400. <plugin>
  401. <groupId>com.atlassian.maven.plugins</groupId>
  402. <artifactId>maven-clover2-plugin</artifactId>
  403. <version>3.0.5</version>
  404. </plugin>
  405. <plugin>
  406. <groupId>org.apache.maven.plugins</groupId>
  407. <artifactId>maven-checkstyle-plugin</artifactId>
  408. <version>2.6</version>
  409. </plugin>
  410. <plugin>
  411. <groupId>org.apache.rat</groupId>
  412. <artifactId>apache-rat-plugin</artifactId>
  413. <version>0.7</version>
  414. </plugin>
  415. <plugin>
  416. <groupId>org.codehaus.mojo</groupId>
  417. <artifactId>native-maven-plugin</artifactId>
  418. <version>1.0-alpha-7</version>
  419. </plugin>
  420. <plugin>
  421. <groupId>org.codehaus.mojo</groupId>
  422. <artifactId>make-maven-plugin</artifactId>
  423. <version>1.0-beta-1</version>
  424. </plugin>
  425. <plugin>
  426. <groupId>org.apache.maven.plugins</groupId>
  427. <artifactId>maven-source-plugin</artifactId>
  428. <version>2.1.2</version>
  429. </plugin>
  430. <plugin>
  431. <groupId>org.apache.maven.plugins</groupId>
  432. <artifactId>maven-deploy-plugin</artifactId>
  433. <version>2.5</version>
  434. </plugin>
  435. </plugins>
  436. </pluginManagement>
  437. <plugins>
  438. <plugin>
  439. <groupId>org.apache.maven.plugins</groupId>
  440. <artifactId>maven-enforcer-plugin</artifactId>
  441. <inherited>false</inherited>
  442. <configuration>
  443. <rules>
  444. <requireMavenVersion>
  445. <version>[3.0.0,)</version>
  446. </requireMavenVersion>
  447. <requireJavaVersion>
  448. <version>1.6</version>
  449. </requireJavaVersion>
  450. </rules>
  451. </configuration>
  452. <executions>
  453. <execution>
  454. <id>clean</id>
  455. <goals>
  456. <goal>enforce</goal>
  457. </goals>
  458. <phase>pre-clean</phase>
  459. </execution>
  460. <execution>
  461. <id>default</id>
  462. <goals>
  463. <goal>enforce</goal>
  464. </goals>
  465. <phase>validate</phase>
  466. </execution>
  467. <execution>
  468. <id>site</id>
  469. <goals>
  470. <goal>enforce</goal>
  471. </goals>
  472. <phase>pre-site</phase>
  473. </execution>
  474. </executions>
  475. </plugin>
  476. <plugin>
  477. <groupId>org.apache.maven.plugins</groupId>
  478. <artifactId>maven-compiler-plugin</artifactId>
  479. <configuration>
  480. <source>1.6</source>
  481. <target>1.6</target>
  482. </configuration>
  483. </plugin>
  484. </plugins>
  485. </build>
  486. <profiles>
  487. <profile>
  488. <id>os.linux</id>
  489. <activation>
  490. <os>
  491. <family>!Mac</family>
  492. </os>
  493. </activation>
  494. <properties>
  495. <build.platform>${os.name}-${os.arch}-${sun.arch.data.model}</build.platform>
  496. </properties>
  497. <dependencies>
  498. <dependency>
  499. <groupId>jdk.tools</groupId>
  500. <artifactId>jdk.tools</artifactId>
  501. <version>1.6</version>
  502. <scope>system</scope>
  503. <systemPath>${env.JAVA_HOME}/lib/tools.jar</systemPath>
  504. </dependency>
  505. </dependencies>
  506. </profile>
  507. <profile>
  508. <id>os.mac</id>
  509. <activation>
  510. <os>
  511. <family>Mac</family>
  512. </os>
  513. </activation>
  514. <properties>
  515. <build.platform>Mac_OS_X-${sun.arch.data.model}</build.platform>
  516. </properties>
  517. </profile>
  518. <profile>
  519. <id>clover</id>
  520. <activation>
  521. <activeByDefault>false</activeByDefault>
  522. <property>
  523. <name>clover</name>
  524. </property>
  525. </activation>
  526. <properties>
  527. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  528. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  529. </properties>
  530. <build>
  531. <plugins>
  532. <plugin>
  533. <groupId>com.atlassian.maven.plugins</groupId>
  534. <artifactId>maven-clover2-plugin</artifactId>
  535. <configuration>
  536. <includesTestSourceRoots>true</includesTestSourceRoots>
  537. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  538. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  539. <targetPercentage>50%</targetPercentage>
  540. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  541. <generateHtml>true</generateHtml>
  542. <generateXml>true</generateXml>
  543. </configuration>
  544. <executions>
  545. <execution>
  546. <id>setup</id>
  547. <phase>generate-sources</phase>
  548. <goals>
  549. <goal>setup</goal>
  550. </goals>
  551. </execution>
  552. <execution>
  553. <id>clover</id>
  554. <phase>test</phase>
  555. <goals>
  556. <goal>clover</goal>
  557. </goals>
  558. </execution>
  559. </executions>
  560. </plugin>
  561. </plugins>
  562. </build>
  563. </profile>
  564. <profile>
  565. <id>test-patch</id>
  566. <activation>
  567. <activeByDefault>false</activeByDefault>
  568. </activation>
  569. <build>
  570. <plugins>
  571. <plugin>
  572. <groupId>org.apache.maven.plugins</groupId>
  573. <artifactId>maven-compiler-plugin</artifactId>
  574. <configuration>
  575. <fork>true</fork>
  576. <source>1.6</source>
  577. <target>1.6</target>
  578. <compilerArguments>
  579. <Xlint/>
  580. <Xmaxwarns>9999</Xmaxwarns>
  581. </compilerArguments>
  582. </configuration>
  583. </plugin>
  584. </plugins>
  585. </build>
  586. </profile>
  587. </profiles>
  588. </project>