pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org.apache.hadoop</groupId>
  5. <artifactId>hadoop-mapreduce</artifactId>
  6. <version>${hadoop-mapreduce.version}</version>
  7. <packaging>pom</packaging>
  8. <name>hadoop-mapreduce</name>
  9. <url>http://hadoop.apache.org/mapreduce/</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <test.logs>true</test.logs>
  13. <test.timeout>600000</test.timeout>
  14. <hadoop-common.version>0.23.0-SNAPSHOT</hadoop-common.version>
  15. <hadoop-hdfs.version>0.23.0-SNAPSHOT</hadoop-hdfs.version>
  16. <hadoop-mapreduce.version>1.0-SNAPSHOT</hadoop-mapreduce.version>
  17. <yarn.version>1.0-SNAPSHOT</yarn.version>
  18. <install.pom>${project.build.directory}/saner-pom.xml</install.pom>
  19. <install.file>${install.pom}</install.file>
  20. <fork.mode>once</fork.mode>
  21. <mr.basedir>${basedir}</mr.basedir>
  22. </properties>
  23. <repositories>
  24. <repository>
  25. <id>repository.jboss.org</id>
  26. <url>http://repository.jboss.org/nexus/content/groups/public/</url>
  27. <snapshots>
  28. <enabled>false</enabled>
  29. </snapshots>
  30. </repository>
  31. <repository>
  32. <id>apache.snapshots</id>
  33. <url>http://repository.apache.org/snapshots</url>
  34. <!-- until we move to hadoop-common/hdfs trunk and/or maven 3 -->
  35. <!-- cf. MNG-4326 -->
  36. <snapshots>
  37. <enabled>true</enabled>
  38. </snapshots>
  39. </repository>
  40. </repositories>
  41. <dependencies>
  42. <dependency>
  43. <groupId>com.google.protobuf</groupId>
  44. <artifactId>protobuf-java</artifactId>
  45. <version>2.4.0a</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.avro</groupId>
  49. <artifactId>avro</artifactId>
  50. <version>1.5.2</version>
  51. <exclusions>
  52. <exclusion>
  53. <groupId>org.mortbay.jetty</groupId>
  54. <artifactId>jetty</artifactId>
  55. </exclusion>
  56. <exclusion>
  57. <groupId>org.apache.ant</groupId>
  58. <artifactId>ant</artifactId>
  59. </exclusion>
  60. <exclusion>
  61. <groupId>org.jboss.netty</groupId>
  62. <artifactId>netty</artifactId>
  63. </exclusion>
  64. <exclusion>
  65. <groupId>org.apache.velocity</groupId>
  66. <artifactId>velocity</artifactId>
  67. </exclusion>
  68. <exclusion>
  69. <groupId>org.slf4j</groupId>
  70. <artifactId>slf4j-api</artifactId>
  71. </exclusion>
  72. <exclusion>
  73. <artifactId>paranamer-ant</artifactId>
  74. <groupId>com.thoughtworks.paranamer</groupId>
  75. </exclusion>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.hadoop</groupId>
  80. <artifactId>hadoop-common</artifactId>
  81. <version>${hadoop-common.version}</version>
  82. <scope>provided</scope>
  83. <exclusions>
  84. <exclusion>
  85. <groupId>commons-el</groupId>
  86. <artifactId>commons-el</artifactId>
  87. </exclusion>
  88. <exclusion>
  89. <groupId>tomcat</groupId>
  90. <artifactId>jasper-runtime</artifactId>
  91. </exclusion>
  92. <exclusion>
  93. <groupId>tomcat</groupId>
  94. <artifactId>jasper-compiler</artifactId>
  95. </exclusion>
  96. <exclusion>
  97. <groupId>org.mortbay.jetty</groupId>
  98. <artifactId>jsp-2.1-jetty</artifactId>
  99. </exclusion>
  100. <exclusion>
  101. <groupId>hsqldb</groupId>
  102. <artifactId>hsqldb</artifactId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.slf4j</groupId>
  108. <artifactId>slf4j-api</artifactId>
  109. <version>1.6.1</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.slf4j</groupId>
  113. <artifactId>slf4j-log4j12</artifactId>
  114. <version>1.6.1</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.hadoop</groupId>
  118. <artifactId>hadoop-annotations</artifactId>
  119. <version>${hadoop-common.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.mockito</groupId>
  123. <artifactId>mockito-all</artifactId>
  124. <version>1.8.5</version>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.hadoop</groupId>
  129. <artifactId>hadoop-common</artifactId>
  130. <version>${hadoop-common.version}</version>
  131. <type>test-jar</type>
  132. <scope>test</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.hadoop</groupId>
  136. <!-- needed for security and runtime -->
  137. <artifactId>hadoop-hdfs</artifactId>
  138. <version>${hadoop-hdfs.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.google.inject.extensions</groupId>
  142. <artifactId>guice-servlet</artifactId>
  143. <version>2.0</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>junit</groupId>
  147. <artifactId>junit</artifactId>
  148. <version>4.8.2</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.jboss.netty</groupId>
  152. <artifactId>netty</artifactId>
  153. <version>3.2.3.Final</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.cenqua.clover</groupId>
  157. <artifactId>clover</artifactId>
  158. <version>3.0.2</version>
  159. </dependency>
  160. </dependencies>
  161. <build>
  162. <pluginManagement>
  163. <plugins>
  164. <plugin>
  165. <groupId>org.codehaus.mojo</groupId>
  166. <artifactId>findbugs-maven-plugin</artifactId>
  167. <version>2.3.2</version>
  168. </plugin>
  169. <plugin>
  170. <artifactId>maven-clean-plugin</artifactId>
  171. <version>2.4.1</version>
  172. </plugin>
  173. <plugin>
  174. <groupId>com.atlassian.maven.plugins</groupId>
  175. <artifactId>maven-clover2-plugin</artifactId>
  176. <version>3.0.2</version>
  177. <configuration>
  178. <licenseLocation>/home/y/conf/clover/clover.license</licenseLocation>
  179. </configuration>
  180. </plugin>
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-compiler-plugin</artifactId>
  184. <!-- pre 2.1 ignores project.build.sourceEncoding -->
  185. <version>2.3.2</version>
  186. <configuration>
  187. <source>1.6</source>
  188. <target>1.6</target>
  189. </configuration>
  190. </plugin>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-surefire-plugin</artifactId>
  194. <!-- requires 2.5+ to make system properties work -->
  195. <!-- requires 2.7+ to avoid SUREFIRE-640 -->
  196. <version>2.7.2</version>
  197. <configuration>
  198. <failIfNoTests>false</failIfNoTests>
  199. <redirectTestOutputToFile>${test.logs}</redirectTestOutputToFile>
  200. <forkedProcessTimeoutInSeconds>${test.timeout}</forkedProcessTimeoutInSeconds>
  201. <forkMode>${fork.mode}</forkMode>
  202. <environmentVariables>
  203. <JAVA_HOME>${java.home}</JAVA_HOME>
  204. </environmentVariables>
  205. <systemPropertyVariables>
  206. <build.dir>${project.build.directory}</build.dir>
  207. <build.output.dir>${project.build.outputDirectory}</build.output.dir>
  208. <log4j.configuration>file:///${mr.basedir}/src/test/log4j.properties</log4j.configuration>
  209. </systemPropertyVariables>
  210. </configuration>
  211. </plugin>
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-assembly-plugin</artifactId>
  215. <version>2.2.1</version>
  216. </plugin>
  217. <plugin>
  218. <groupId>org.apache.maven.plugins</groupId>
  219. <artifactId>maven-antrun-plugin</artifactId>
  220. <version>1.6</version>
  221. </plugin>
  222. <plugin>
  223. <groupId>org.codehaus.mojo</groupId>
  224. <artifactId>exec-maven-plugin</artifactId>
  225. <version>1.2</version>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.codehaus.mojo</groupId>
  229. <artifactId>build-helper-maven-plugin</artifactId>
  230. <version>1.5</version>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-install-plugin</artifactId>
  235. <version>2.3.1</version>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-jar-plugin</artifactId>
  240. <version>2.3.1</version>
  241. </plugin>
  242. <plugin>
  243. <groupId>org.apache.maven.plugins</groupId>
  244. <artifactId>maven-source-plugin</artifactId>
  245. <version>2.1.2</version>
  246. </plugin>
  247. </plugins>
  248. </pluginManagement>
  249. <plugins>
  250. <plugin>
  251. <artifactId>maven-antrun-plugin</artifactId>
  252. <executions>
  253. <execution>
  254. <id>santize-pom</id>
  255. <phase>package</phase>
  256. <configuration>
  257. <target>
  258. <copy file="pom.xml" tofile="${install.pom}">
  259. <filterchain>
  260. <!-- we'll have to wait for ant 1.8.3 for the following
  261. <expandproperties>
  262. <propertyset regex=".*version$">
  263. </propertyset>
  264. </expandproperties>
  265. until then an even uglier workaround: -->
  266. <tokenfilter>
  267. <replaceregex pattern="\$\{hadoop-common.version}"
  268. replace="${hadoop-common.version}" flags="g"/>
  269. <replaceregex pattern="\$\{hadoop-hdfs.version}"
  270. replace="${hadoop-hdfs.version}" flags="g"/>
  271. <replaceregex pattern="\$\{hadoop-mapreduce.version}"
  272. replace="${hadoop-mapreduce.version}" flags="g"/>
  273. <replaceregex pattern="\$\{yarn.version}"
  274. replace="${yarn.version}" flags="g"/>
  275. </tokenfilter>
  276. </filterchain>
  277. </copy>
  278. </target>
  279. </configuration>
  280. <goals>
  281. <goal>run</goal>
  282. </goals>
  283. </execution>
  284. </executions>
  285. </plugin>
  286. <plugin>
  287. <artifactId>maven-install-plugin</artifactId>
  288. <executions>
  289. <execution>
  290. <id>install-sanitized-pom</id>
  291. <configuration>
  292. <file>${install.file}</file>
  293. <pomFile>${install.pom}</pomFile>
  294. </configuration>
  295. <phase>install</phase>
  296. <goals>
  297. <goal>install-file</goal>
  298. </goals>
  299. </execution>
  300. </executions>
  301. </plugin>
  302. <plugin>
  303. <artifactId>maven-assembly-plugin</artifactId>
  304. <configuration>
  305. <tarLongFileMode>gnu</tarLongFileMode>
  306. <descriptors>
  307. <descriptor>assembly/all.xml</descriptor>
  308. </descriptors>
  309. </configuration>
  310. </plugin>
  311. <plugin>
  312. <groupId>com.atlassian.maven.plugins</groupId>
  313. <artifactId>maven-clover2-plugin</artifactId>
  314. <executions>
  315. <execution>
  316. <goals>
  317. <goal>instrument</goal>
  318. <goal>aggregate</goal>
  319. </goals>
  320. </execution>
  321. </executions>
  322. </plugin>
  323. <plugin>
  324. <groupId>org.codehaus.mojo</groupId>
  325. <artifactId>findbugs-maven-plugin</artifactId>
  326. <configuration>
  327. <findbugsXmlOutput>true</findbugsXmlOutput>
  328. <xmlOutput>true</xmlOutput>
  329. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  330. <effort>Max</effort>
  331. </configuration>
  332. </plugin>
  333. </plugins>
  334. </build>
  335. <profiles>
  336. <profile>
  337. <id>release</id>
  338. <build>
  339. <plugins>
  340. <plugin>
  341. <artifactId>maven-source-plugin</artifactId>
  342. <executions>
  343. <execution>
  344. <id>attach-sources</id>
  345. <goals>
  346. <!-- avoid warning about recursion -->
  347. <goal>jar-no-fork</goal>
  348. </goals>
  349. </execution>
  350. </executions>
  351. </plugin>
  352. </plugins>
  353. </build>
  354. </profile>
  355. </profiles>
  356. <modules>
  357. <module>hadoop-yarn</module>
  358. <module>hadoop-mapreduce-client</module>
  359. </modules>
  360. <reporting>
  361. <plugins>
  362. <plugin>
  363. <groupId>org.codehaus.mojo</groupId>
  364. <artifactId>findbugs-maven-plugin</artifactId>
  365. <!-- until we have reporting management cf. MSITE-443 -->
  366. <version>2.3.2</version>
  367. <configuration>
  368. <findbugsXmlOutput>true</findbugsXmlOutput>
  369. <xmlOutput>true</xmlOutput>
  370. </configuration>
  371. </plugin>
  372. <plugin>
  373. <groupId>com.atlassian.maven.plugins</groupId>
  374. <artifactId>maven-clover2-plugin</artifactId>
  375. <!-- until we have reporting management cf. MSITE-443 -->
  376. <version>3.0.2</version>
  377. </plugin>
  378. </plugins>
  379. </reporting>
  380. </project>