pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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.23.3-SNAPSHOT</version>
  19. <relativePath>../hadoop-project</relativePath>
  20. </parent>
  21. <groupId>org.apache.hadoop</groupId>
  22. <artifactId>hadoop-mapreduce</artifactId>
  23. <version>0.23.3-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. <hadoop.component>mapreduce</hadoop.component>
  34. <is.hadoop.component>true</is.hadoop.component>
  35. </properties>
  36. <modules>
  37. <module>hadoop-yarn</module>
  38. <module>hadoop-mapreduce-client</module>
  39. <module>hadoop-mapreduce-examples</module>
  40. </modules>
  41. <dependencies>
  42. <dependency>
  43. <groupId>com.google.protobuf</groupId>
  44. <artifactId>protobuf-java</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.avro</groupId>
  48. <artifactId>avro</artifactId>
  49. <exclusions>
  50. <exclusion>
  51. <groupId>org.mortbay.jetty</groupId>
  52. <artifactId>jetty</artifactId>
  53. </exclusion>
  54. <exclusion>
  55. <groupId>org.apache.ant</groupId>
  56. <artifactId>ant</artifactId>
  57. </exclusion>
  58. <exclusion>
  59. <groupId>org.jboss.netty</groupId>
  60. <artifactId>netty</artifactId>
  61. </exclusion>
  62. <exclusion>
  63. <groupId>org.apache.velocity</groupId>
  64. <artifactId>velocity</artifactId>
  65. </exclusion>
  66. <exclusion>
  67. <groupId>org.slf4j</groupId>
  68. <artifactId>slf4j-api</artifactId>
  69. </exclusion>
  70. <exclusion>
  71. <artifactId>paranamer-ant</artifactId>
  72. <groupId>com.thoughtworks.paranamer</groupId>
  73. </exclusion>
  74. </exclusions>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.hadoop</groupId>
  78. <artifactId>hadoop-common</artifactId>
  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. </exclusions>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.slf4j</groupId>
  101. <artifactId>slf4j-api</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.slf4j</groupId>
  105. <artifactId>slf4j-log4j12</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.apache.hadoop</groupId>
  109. <artifactId>hadoop-annotations</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.mockito</groupId>
  113. <artifactId>mockito-all</artifactId>
  114. <scope>test</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.hadoop</groupId>
  118. <artifactId>hadoop-common</artifactId>
  119. <type>test-jar</type>
  120. <scope>test</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.apache.hadoop</groupId>
  124. <!-- needed for security and runtime -->
  125. <artifactId>hadoop-hdfs</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.google.inject</groupId>
  129. <artifactId>guice</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.sun.jersey</groupId>
  133. <artifactId>jersey-server</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.sun.jersey.contribs</groupId>
  137. <artifactId>jersey-guice</artifactId>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.google.inject.extensions</groupId>
  141. <artifactId>guice-servlet</artifactId>
  142. </dependency>
  143. <dependency>
  144. <groupId>junit</groupId>
  145. <artifactId>junit</artifactId>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.jboss.netty</groupId>
  149. <artifactId>netty</artifactId>
  150. </dependency>
  151. <dependency>
  152. <groupId>commons-io</groupId>
  153. <artifactId>commons-io</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.cenqua.clover</groupId>
  157. <artifactId>clover</artifactId>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.hsqldb</groupId>
  161. <artifactId>hsqldb</artifactId>
  162. <version>2.0.0</version>
  163. </dependency>
  164. </dependencies>
  165. <build>
  166. <plugins>
  167. <plugin>
  168. <artifactId>maven-antrun-plugin</artifactId>
  169. <executions>
  170. <execution>
  171. <id>tar</id>
  172. <phase>package</phase>
  173. <goals>
  174. <goal>run</goal>
  175. </goals>
  176. <configuration>
  177. <!-- this is identical from hadoop-project-dist, eventually they must be unified -->
  178. <target if="tar">
  179. <!-- Using Unix script to preserve symlinks -->
  180. <echo file="${project.build.directory}/dist-maketar.sh">
  181. which cygpath &gt;> /dev/null
  182. if [ $? = 1 ]; then
  183. BUILD_DIR="${project.build.directory}"
  184. else
  185. BUILD_DIR=`cygpath --unix '${project.build.directory}'`
  186. fi
  187. cd $BUILD_DIR
  188. tar czf ${project.artifactId}-${project.version}.tar.gz ${project.artifactId}-${project.version}
  189. </echo>
  190. <exec executable="sh" dir="${project.build.directory}" failonerror="true">
  191. <arg line="./dist-maketar.sh"/>
  192. </exec>
  193. </target>
  194. </configuration>
  195. </execution>
  196. </executions>
  197. </plugin>
  198. <plugin>
  199. <groupId>com.atlassian.maven.plugins</groupId>
  200. <artifactId>maven-clover2-plugin</artifactId>
  201. <executions>
  202. <execution>
  203. <goals>
  204. <goal>instrument</goal>
  205. <goal>aggregate</goal>
  206. </goals>
  207. </execution>
  208. </executions>
  209. </plugin>
  210. <plugin>
  211. <groupId>org.codehaus.mojo</groupId>
  212. <artifactId>findbugs-maven-plugin</artifactId>
  213. <configuration>
  214. <findbugsXmlOutput>true</findbugsXmlOutput>
  215. <xmlOutput>true</xmlOutput>
  216. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  217. <effort>Max</effort>
  218. </configuration>
  219. </plugin>
  220. <plugin>
  221. <groupId>org.apache.rat</groupId>
  222. <artifactId>apache-rat-plugin</artifactId>
  223. <configuration>
  224. <includes>
  225. <include>pom.xml</include>
  226. </includes>
  227. </configuration>
  228. </plugin>
  229. </plugins>
  230. </build>
  231. <profiles>
  232. <profile>
  233. <id>dist</id>
  234. <activation>
  235. <activeByDefault>false</activeByDefault>
  236. </activation>
  237. <build>
  238. <plugins>
  239. <plugin>
  240. <artifactId>maven-source-plugin</artifactId>
  241. <executions>
  242. <execution>
  243. <id>attach-sources</id>
  244. <goals>
  245. <!-- avoid warning about recursion -->
  246. <goal>jar-no-fork</goal>
  247. </goals>
  248. </execution>
  249. </executions>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-assembly-plugin</artifactId>
  254. <dependencies>
  255. <dependency>
  256. <groupId>org.apache.hadoop</groupId>
  257. <artifactId>hadoop-assemblies</artifactId>
  258. <version>${project.version}</version>
  259. </dependency>
  260. </dependencies>
  261. <configuration>
  262. <tarLongFileMode>gnu</tarLongFileMode>
  263. <appendAssemblyId>false</appendAssemblyId>
  264. <attach>false</attach>
  265. <finalName>${project.artifactId}-${project.version}</finalName>
  266. <descriptorRefs>
  267. <descriptorRef>hadoop-mapreduce-dist</descriptorRef>
  268. </descriptorRefs>
  269. </configuration>
  270. <executions>
  271. <execution>
  272. <id>package-mapreduce</id>
  273. <phase>prepare-package</phase>
  274. <goals>
  275. <goal>single</goal>
  276. </goals>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. </plugins>
  281. </build>
  282. </profile>
  283. </profiles>
  284. <reporting>
  285. <plugins>
  286. <plugin>
  287. <groupId>org.codehaus.mojo</groupId>
  288. <artifactId>findbugs-maven-plugin</artifactId>
  289. <!-- until we have reporting management cf. MSITE-443 -->
  290. <version>2.3.2</version>
  291. <configuration>
  292. <findbugsXmlOutput>true</findbugsXmlOutput>
  293. <xmlOutput>true</xmlOutput>
  294. </configuration>
  295. </plugin>
  296. <plugin>
  297. <groupId>com.atlassian.maven.plugins</groupId>
  298. <artifactId>maven-clover2-plugin</artifactId>
  299. <!-- until we have reporting management cf. MSITE-443 -->
  300. <version>3.0.2</version>
  301. </plugin>
  302. </plugins>
  303. </reporting>
  304. </project>