pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  14. <modelVersion>4.0.0</modelVersion>
  15. <groupId>org.apache.hadoop</groupId>
  16. <artifactId>hadoop-mapreduce</artifactId>
  17. <version>${hadoop-mapreduce.version}</version>
  18. <packaging>pom</packaging>
  19. <name>hadoop-mapreduce</name>
  20. <url>http://hadoop.apache.org/mapreduce/</url>
  21. <properties>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <test.logs>true</test.logs>
  24. <test.timeout>600000</test.timeout>
  25. <hadoop.assemblies.version>${project.version}</hadoop.assemblies.version>
  26. <hadoop-common.version>0.24.0-SNAPSHOT</hadoop-common.version>
  27. <hadoop-hdfs.version>0.24.0-SNAPSHOT</hadoop-hdfs.version>
  28. <hadoop-mapreduce.version>0.24.0-SNAPSHOT</hadoop-mapreduce.version>
  29. <yarn.version>0.24.0-SNAPSHOT</yarn.version>
  30. <install.pom>${project.build.directory}/saner-pom.xml</install.pom>
  31. <install.file>${install.pom}</install.file>
  32. <fork.mode>once</fork.mode>
  33. <mr.basedir>${basedir}</mr.basedir>
  34. </properties>
  35. <repositories>
  36. <repository>
  37. <id>repository.jboss.org</id>
  38. <url>http://repository.jboss.org/nexus/content/groups/public/</url>
  39. <snapshots>
  40. <enabled>false</enabled>
  41. </snapshots>
  42. </repository>
  43. <repository>
  44. <id>apache.snapshots</id>
  45. <url>http://repository.apache.org/snapshots</url>
  46. <!-- until we move to hadoop-common/hdfs trunk and/or maven 3 -->
  47. <!-- cf. MNG-4326 -->
  48. <snapshots>
  49. <enabled>true</enabled>
  50. </snapshots>
  51. </repository>
  52. </repositories>
  53. <dependencies>
  54. <dependency>
  55. <groupId>com.google.protobuf</groupId>
  56. <artifactId>protobuf-java</artifactId>
  57. <version>2.4.0a</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.avro</groupId>
  61. <artifactId>avro</artifactId>
  62. <version>1.5.3</version>
  63. <exclusions>
  64. <exclusion>
  65. <groupId>org.mortbay.jetty</groupId>
  66. <artifactId>jetty</artifactId>
  67. </exclusion>
  68. <exclusion>
  69. <groupId>org.apache.ant</groupId>
  70. <artifactId>ant</artifactId>
  71. </exclusion>
  72. <exclusion>
  73. <groupId>org.jboss.netty</groupId>
  74. <artifactId>netty</artifactId>
  75. </exclusion>
  76. <exclusion>
  77. <groupId>org.apache.velocity</groupId>
  78. <artifactId>velocity</artifactId>
  79. </exclusion>
  80. <exclusion>
  81. <groupId>org.slf4j</groupId>
  82. <artifactId>slf4j-api</artifactId>
  83. </exclusion>
  84. <exclusion>
  85. <artifactId>paranamer-ant</artifactId>
  86. <groupId>com.thoughtworks.paranamer</groupId>
  87. </exclusion>
  88. </exclusions>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.hadoop</groupId>
  92. <artifactId>hadoop-common</artifactId>
  93. <version>${hadoop-common.version}</version>
  94. <scope>provided</scope>
  95. <exclusions>
  96. <exclusion>
  97. <groupId>commons-el</groupId>
  98. <artifactId>commons-el</artifactId>
  99. </exclusion>
  100. <exclusion>
  101. <groupId>tomcat</groupId>
  102. <artifactId>jasper-runtime</artifactId>
  103. </exclusion>
  104. <exclusion>
  105. <groupId>tomcat</groupId>
  106. <artifactId>jasper-compiler</artifactId>
  107. </exclusion>
  108. <exclusion>
  109. <groupId>org.mortbay.jetty</groupId>
  110. <artifactId>jsp-2.1-jetty</artifactId>
  111. </exclusion>
  112. <exclusion>
  113. <groupId>hsqldb</groupId>
  114. <artifactId>hsqldb</artifactId>
  115. </exclusion>
  116. </exclusions>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.slf4j</groupId>
  120. <artifactId>slf4j-api</artifactId>
  121. <version>1.6.1</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.slf4j</groupId>
  125. <artifactId>slf4j-log4j12</artifactId>
  126. <version>1.6.1</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.apache.hadoop</groupId>
  130. <artifactId>hadoop-annotations</artifactId>
  131. <version>${hadoop-common.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.mockito</groupId>
  135. <artifactId>mockito-all</artifactId>
  136. <version>1.8.5</version>
  137. <scope>test</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.hadoop</groupId>
  141. <artifactId>hadoop-common</artifactId>
  142. <version>${hadoop-common.version}</version>
  143. <type>test-jar</type>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.hadoop</groupId>
  148. <!-- needed for security and runtime -->
  149. <artifactId>hadoop-hdfs</artifactId>
  150. <version>${hadoop-hdfs.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.google.inject.extensions</groupId>
  154. <artifactId>guice-servlet</artifactId>
  155. <version>2.0</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>junit</groupId>
  159. <artifactId>junit</artifactId>
  160. <version>4.8.2</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.jboss.netty</groupId>
  164. <artifactId>netty</artifactId>
  165. <version>3.2.3.Final</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>com.cenqua.clover</groupId>
  169. <artifactId>clover</artifactId>
  170. <version>3.0.2</version>
  171. </dependency>
  172. </dependencies>
  173. <build>
  174. <pluginManagement>
  175. <plugins>
  176. <plugin>
  177. <groupId>org.codehaus.mojo</groupId>
  178. <artifactId>findbugs-maven-plugin</artifactId>
  179. <version>2.3.2</version>
  180. </plugin>
  181. <plugin>
  182. <artifactId>maven-clean-plugin</artifactId>
  183. <version>2.4.1</version>
  184. </plugin>
  185. <plugin>
  186. <groupId>com.atlassian.maven.plugins</groupId>
  187. <artifactId>maven-clover2-plugin</artifactId>
  188. <version>3.0.2</version>
  189. <configuration>
  190. <licenseLocation>/home/y/conf/clover/clover.license</licenseLocation>
  191. </configuration>
  192. </plugin>
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-compiler-plugin</artifactId>
  196. <!-- pre 2.1 ignores project.build.sourceEncoding -->
  197. <version>2.3.2</version>
  198. <configuration>
  199. <source>1.6</source>
  200. <target>1.6</target>
  201. </configuration>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-surefire-plugin</artifactId>
  206. <!-- requires 2.5+ to make system properties work -->
  207. <!-- requires 2.7+ to avoid SUREFIRE-640 -->
  208. <version>2.9</version>
  209. <configuration>
  210. <failIfNoTests>false</failIfNoTests>
  211. <redirectTestOutputToFile>${test.logs}</redirectTestOutputToFile>
  212. <forkedProcessTimeoutInSeconds>${test.timeout}</forkedProcessTimeoutInSeconds>
  213. <forkMode>${fork.mode}</forkMode>
  214. <environmentVariables>
  215. <JAVA_HOME>${java.home}</JAVA_HOME>
  216. </environmentVariables>
  217. <systemPropertyVariables>
  218. <build.dir>${project.build.directory}</build.dir>
  219. <build.output.dir>${project.build.outputDirectory}</build.output.dir>
  220. <log4j.configuration>file:///${mr.basedir}/src/test/log4j.properties</log4j.configuration>
  221. </systemPropertyVariables>
  222. </configuration>
  223. </plugin>
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-assembly-plugin</artifactId>
  227. <version>2.2.1</version>
  228. </plugin>
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-antrun-plugin</artifactId>
  232. <version>1.6</version>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.codehaus.mojo</groupId>
  236. <artifactId>exec-maven-plugin</artifactId>
  237. <version>1.2</version>
  238. </plugin>
  239. <plugin>
  240. <groupId>org.codehaus.mojo</groupId>
  241. <artifactId>build-helper-maven-plugin</artifactId>
  242. <version>1.5</version>
  243. </plugin>
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-install-plugin</artifactId>
  247. <version>2.3.1</version>
  248. </plugin>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-jar-plugin</artifactId>
  252. <version>2.3.1</version>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-source-plugin</artifactId>
  257. <version>2.1.2</version>
  258. </plugin>
  259. </plugins>
  260. </pluginManagement>
  261. <plugins>
  262. <plugin>
  263. <artifactId>maven-antrun-plugin</artifactId>
  264. <executions>
  265. <execution>
  266. <id>santize-pom</id>
  267. <phase>package</phase>
  268. <configuration>
  269. <target>
  270. <copy file="pom.xml" tofile="${install.pom}">
  271. <filterchain>
  272. <!-- we'll have to wait for ant 1.8.3 for the following
  273. <expandproperties>
  274. <propertyset regex=".*version$">
  275. </propertyset>
  276. </expandproperties>
  277. until then an even uglier workaround: -->
  278. <tokenfilter>
  279. <replaceregex pattern="\$\{hadoop-common.version}"
  280. replace="${hadoop-common.version}" flags="g"/>
  281. <replaceregex pattern="\$\{hadoop-hdfs.version}"
  282. replace="${hadoop-hdfs.version}" flags="g"/>
  283. <replaceregex pattern="\$\{hadoop-mapreduce.version}"
  284. replace="${hadoop-mapreduce.version}" flags="g"/>
  285. <replaceregex pattern="\$\{yarn.version}"
  286. replace="${yarn.version}" flags="g"/>
  287. </tokenfilter>
  288. </filterchain>
  289. </copy>
  290. </target>
  291. </configuration>
  292. <goals>
  293. <goal>run</goal>
  294. </goals>
  295. </execution>
  296. <execution>
  297. <id>tar</id>
  298. <phase>package</phase>
  299. <goals>
  300. <goal>run</goal>
  301. </goals>
  302. <configuration>
  303. <!-- this is identical from hadoop-project-dist, eventually they must be unified -->
  304. <target if="tar">
  305. <!-- Using Unix script to preserve symlinks -->
  306. <echo file="${project.build.directory}/dist-maketar.sh">
  307. which cygpath 2> /dev/null
  308. if [ $? = 1 ]; then
  309. BUILD_DIR="${project.build.directory}"
  310. else
  311. BUILD_DIR=`cygpath --unix '${project.build.directory}'`
  312. fi
  313. cd $BUILD_DIR
  314. tar czf ${project.artifactId}-${project.version}.tar.gz ${project.artifactId}-${project.version}
  315. </echo>
  316. <exec executable="sh" dir="${project.build.directory}" failonerror="true">
  317. <arg line="./dist-maketar.sh"/>
  318. </exec>
  319. </target>
  320. </configuration>
  321. </execution>
  322. </executions>
  323. </plugin>
  324. <plugin>
  325. <artifactId>maven-install-plugin</artifactId>
  326. <executions>
  327. <execution>
  328. <id>install-sanitized-pom</id>
  329. <configuration>
  330. <file>${install.file}</file>
  331. <pomFile>${install.pom}</pomFile>
  332. </configuration>
  333. <phase>install</phase>
  334. <goals>
  335. <goal>install-file</goal>
  336. </goals>
  337. </execution>
  338. </executions>
  339. </plugin>
  340. <plugin>
  341. <groupId>com.atlassian.maven.plugins</groupId>
  342. <artifactId>maven-clover2-plugin</artifactId>
  343. <executions>
  344. <execution>
  345. <goals>
  346. <goal>instrument</goal>
  347. <goal>aggregate</goal>
  348. </goals>
  349. </execution>
  350. </executions>
  351. </plugin>
  352. <plugin>
  353. <groupId>org.codehaus.mojo</groupId>
  354. <artifactId>findbugs-maven-plugin</artifactId>
  355. <configuration>
  356. <findbugsXmlOutput>true</findbugsXmlOutput>
  357. <xmlOutput>true</xmlOutput>
  358. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  359. <effort>Max</effort>
  360. </configuration>
  361. </plugin>
  362. <plugin>
  363. <groupId>org.apache.rat</groupId>
  364. <artifactId>apache-rat-plugin</artifactId>
  365. <configuration>
  366. <includes>
  367. <include>pom.xml</include>
  368. </includes>
  369. </configuration>
  370. </plugin>
  371. </plugins>
  372. </build>
  373. <profiles>
  374. <profile>
  375. <id>release</id>
  376. <build>
  377. <plugins>
  378. <plugin>
  379. <artifactId>maven-source-plugin</artifactId>
  380. <executions>
  381. <execution>
  382. <id>attach-sources</id>
  383. <goals>
  384. <!-- avoid warning about recursion -->
  385. <goal>jar-no-fork</goal>
  386. </goals>
  387. </execution>
  388. </executions>
  389. </plugin>
  390. </plugins>
  391. </build>
  392. </profile>
  393. <profile>
  394. <id>dist</id>
  395. <activation>
  396. <activeByDefault>false</activeByDefault>
  397. </activation>
  398. <build>
  399. <plugins>
  400. <plugin>
  401. <groupId>org.apache.maven.plugins</groupId>
  402. <artifactId>maven-assembly-plugin</artifactId>
  403. <dependencies>
  404. <dependency>
  405. <groupId>org.apache.hadoop</groupId>
  406. <artifactId>hadoop-assemblies</artifactId>
  407. <version>${project.version}</version>
  408. </dependency>
  409. </dependencies>
  410. <configuration>
  411. <tarLongFileMode>gnu</tarLongFileMode>
  412. <appendAssemblyId>false</appendAssemblyId>
  413. <attach>false</attach>
  414. <finalName>${project.artifactId}-${project.version}</finalName>
  415. <descriptorRefs>
  416. <descriptorRef>hadoop-mapreduce-dist</descriptorRef>
  417. </descriptorRefs>
  418. </configuration>
  419. <executions>
  420. <execution>
  421. <id>dist</id>
  422. <phase>prepare-package</phase>
  423. <goals>
  424. <goal>single</goal>
  425. </goals>
  426. </execution>
  427. </executions>
  428. </plugin>
  429. </plugins>
  430. </build>
  431. </profile>
  432. </profiles>
  433. <modules>
  434. <module>hadoop-yarn</module>
  435. <module>hadoop-mapreduce-client</module>
  436. </modules>
  437. <reporting>
  438. <plugins>
  439. <plugin>
  440. <groupId>org.codehaus.mojo</groupId>
  441. <artifactId>findbugs-maven-plugin</artifactId>
  442. <!-- until we have reporting management cf. MSITE-443 -->
  443. <version>2.3.2</version>
  444. <configuration>
  445. <findbugsXmlOutput>true</findbugsXmlOutput>
  446. <xmlOutput>true</xmlOutput>
  447. </configuration>
  448. </plugin>
  449. <plugin>
  450. <groupId>com.atlassian.maven.plugins</groupId>
  451. <artifactId>maven-clover2-plugin</artifactId>
  452. <!-- until we have reporting management cf. MSITE-443 -->
  453. <version>3.0.2</version>
  454. </plugin>
  455. </plugins>
  456. </reporting>
  457. </project>