pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  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>commons-io</groupId>
  168. <artifactId>commons-io</artifactId>
  169. <version>2.1</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.cenqua.clover</groupId>
  173. <artifactId>clover</artifactId>
  174. <version>3.0.2</version>
  175. </dependency>
  176. </dependencies>
  177. <build>
  178. <pluginManagement>
  179. <plugins>
  180. <plugin>
  181. <groupId>org.codehaus.mojo</groupId>
  182. <artifactId>findbugs-maven-plugin</artifactId>
  183. <version>2.3.2</version>
  184. </plugin>
  185. <plugin>
  186. <artifactId>maven-clean-plugin</artifactId>
  187. <version>2.4.1</version>
  188. </plugin>
  189. <plugin>
  190. <groupId>com.atlassian.maven.plugins</groupId>
  191. <artifactId>maven-clover2-plugin</artifactId>
  192. <version>3.0.2</version>
  193. <configuration>
  194. <licenseLocation>/home/y/conf/clover/clover.license</licenseLocation>
  195. </configuration>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-compiler-plugin</artifactId>
  200. <!-- pre 2.1 ignores project.build.sourceEncoding -->
  201. <version>2.3.2</version>
  202. <configuration>
  203. <source>1.6</source>
  204. <target>1.6</target>
  205. </configuration>
  206. </plugin>
  207. <plugin>
  208. <groupId>org.apache.maven.plugins</groupId>
  209. <artifactId>maven-surefire-plugin</artifactId>
  210. <!-- requires 2.5+ to make system properties work -->
  211. <!-- requires 2.7+ to avoid SUREFIRE-640 -->
  212. <version>2.9</version>
  213. <configuration>
  214. <failIfNoTests>false</failIfNoTests>
  215. <redirectTestOutputToFile>${test.logs}</redirectTestOutputToFile>
  216. <forkedProcessTimeoutInSeconds>${test.timeout}</forkedProcessTimeoutInSeconds>
  217. <forkMode>${fork.mode}</forkMode>
  218. <environmentVariables>
  219. <JAVA_HOME>${java.home}</JAVA_HOME>
  220. </environmentVariables>
  221. <systemPropertyVariables>
  222. <build.dir>${project.build.directory}</build.dir>
  223. <build.output.dir>${project.build.outputDirectory}</build.output.dir>
  224. <log4j.configuration>file:///${mr.basedir}/src/test/log4j.properties</log4j.configuration>
  225. </systemPropertyVariables>
  226. </configuration>
  227. </plugin>
  228. <plugin>
  229. <groupId>org.apache.maven.plugins</groupId>
  230. <artifactId>maven-assembly-plugin</artifactId>
  231. <version>2.2.1</version>
  232. </plugin>
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-antrun-plugin</artifactId>
  236. <version>1.6</version>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.codehaus.mojo</groupId>
  240. <artifactId>exec-maven-plugin</artifactId>
  241. <version>1.2</version>
  242. </plugin>
  243. <plugin>
  244. <groupId>org.codehaus.mojo</groupId>
  245. <artifactId>build-helper-maven-plugin</artifactId>
  246. <version>1.5</version>
  247. </plugin>
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-install-plugin</artifactId>
  251. <version>2.3.1</version>
  252. </plugin>
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-jar-plugin</artifactId>
  256. <version>2.3.1</version>
  257. </plugin>
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-source-plugin</artifactId>
  261. <version>2.1.2</version>
  262. </plugin>
  263. </plugins>
  264. </pluginManagement>
  265. <plugins>
  266. <plugin>
  267. <artifactId>maven-antrun-plugin</artifactId>
  268. <executions>
  269. <execution>
  270. <id>santize-pom</id>
  271. <phase>package</phase>
  272. <configuration>
  273. <target>
  274. <copy file="pom.xml" tofile="${install.pom}">
  275. <filterchain>
  276. <!-- we'll have to wait for ant 1.8.3 for the following
  277. <expandproperties>
  278. <propertyset regex=".*version$">
  279. </propertyset>
  280. </expandproperties>
  281. until then an even uglier workaround: -->
  282. <tokenfilter>
  283. <replaceregex pattern="\$\{hadoop-common.version}"
  284. replace="${hadoop-common.version}" flags="g"/>
  285. <replaceregex pattern="\$\{hadoop-hdfs.version}"
  286. replace="${hadoop-hdfs.version}" flags="g"/>
  287. <replaceregex pattern="\$\{hadoop-mapreduce.version}"
  288. replace="${hadoop-mapreduce.version}" flags="g"/>
  289. <replaceregex pattern="\$\{yarn.version}"
  290. replace="${yarn.version}" flags="g"/>
  291. </tokenfilter>
  292. </filterchain>
  293. </copy>
  294. </target>
  295. </configuration>
  296. <goals>
  297. <goal>run</goal>
  298. </goals>
  299. </execution>
  300. </executions>
  301. </plugin>
  302. <plugin>
  303. <artifactId>maven-install-plugin</artifactId>
  304. <executions>
  305. <execution>
  306. <id>install-sanitized-pom</id>
  307. <configuration>
  308. <file>${install.file}</file>
  309. <pomFile>${install.pom}</pomFile>
  310. </configuration>
  311. <phase>install</phase>
  312. <goals>
  313. <goal>install-file</goal>
  314. </goals>
  315. </execution>
  316. </executions>
  317. </plugin>
  318. <plugin>
  319. <artifactId>maven-assembly-plugin</artifactId>
  320. <configuration>
  321. <tarLongFileMode>gnu</tarLongFileMode>
  322. <descriptors>
  323. <descriptor>assembly/all.xml</descriptor>
  324. </descriptors>
  325. </configuration>
  326. </plugin>
  327. <plugin>
  328. <groupId>com.atlassian.maven.plugins</groupId>
  329. <artifactId>maven-clover2-plugin</artifactId>
  330. <executions>
  331. <execution>
  332. <goals>
  333. <goal>instrument</goal>
  334. <goal>aggregate</goal>
  335. </goals>
  336. </execution>
  337. </executions>
  338. </plugin>
  339. <plugin>
  340. <groupId>org.codehaus.mojo</groupId>
  341. <artifactId>findbugs-maven-plugin</artifactId>
  342. <configuration>
  343. <findbugsXmlOutput>true</findbugsXmlOutput>
  344. <xmlOutput>true</xmlOutput>
  345. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  346. <effort>Max</effort>
  347. </configuration>
  348. </plugin>
  349. <plugin>
  350. <groupId>org.apache.rat</groupId>
  351. <artifactId>apache-rat-plugin</artifactId>
  352. <configuration>
  353. <includes>
  354. <include>pom.xml</include>
  355. </includes>
  356. </configuration>
  357. </plugin>
  358. </plugins>
  359. </build>
  360. <profiles>
  361. <profile>
  362. <id>release</id>
  363. <build>
  364. <plugins>
  365. <plugin>
  366. <artifactId>maven-source-plugin</artifactId>
  367. <executions>
  368. <execution>
  369. <id>attach-sources</id>
  370. <goals>
  371. <!-- avoid warning about recursion -->
  372. <goal>jar-no-fork</goal>
  373. </goals>
  374. </execution>
  375. </executions>
  376. </plugin>
  377. </plugins>
  378. </build>
  379. </profile>
  380. </profiles>
  381. <modules>
  382. <module>hadoop-yarn</module>
  383. <module>hadoop-mapreduce-client</module>
  384. </modules>
  385. <reporting>
  386. <plugins>
  387. <plugin>
  388. <groupId>org.codehaus.mojo</groupId>
  389. <artifactId>findbugs-maven-plugin</artifactId>
  390. <!-- until we have reporting management cf. MSITE-443 -->
  391. <version>2.3.2</version>
  392. <configuration>
  393. <findbugsXmlOutput>true</findbugsXmlOutput>
  394. <xmlOutput>true</xmlOutput>
  395. </configuration>
  396. </plugin>
  397. <plugin>
  398. <groupId>com.atlassian.maven.plugins</groupId>
  399. <artifactId>maven-clover2-plugin</artifactId>
  400. <!-- until we have reporting management cf. MSITE-443 -->
  401. <version>3.0.2</version>
  402. </plugin>
  403. </plugins>
  404. </reporting>
  405. </project>