pom.xml 14 KB

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