pom.xml 13 KB

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