pom.xml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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>2.5.1</version>
  19. <relativePath>../hadoop-project</relativePath>
  20. </parent>
  21. <groupId>org.apache.hadoop</groupId>
  22. <artifactId>hadoop-mapreduce</artifactId>
  23. <version>2.5.1</version>
  24. <packaging>pom</packaging>
  25. <name>hadoop-mapreduce</name>
  26. <url>http://hadoop.apache.org/mapreduce/</url>
  27. <properties>
  28. <test.logs>true</test.logs>
  29. <test.timeout>600000</test.timeout>
  30. <fork.mode>once</fork.mode>
  31. <mr.basedir>${basedir}</mr.basedir>
  32. <hadoop.component>mapreduce</hadoop.component>
  33. <is.hadoop.component>true</is.hadoop.component>
  34. </properties>
  35. <modules>
  36. <module>hadoop-mapreduce-client</module>
  37. <module>hadoop-mapreduce-examples</module>
  38. </modules>
  39. <dependencies>
  40. <dependency>
  41. <groupId>com.google.protobuf</groupId>
  42. <artifactId>protobuf-java</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.avro</groupId>
  46. <artifactId>avro</artifactId>
  47. <exclusions>
  48. <exclusion>
  49. <groupId>org.mortbay.jetty</groupId>
  50. <artifactId>jetty</artifactId>
  51. </exclusion>
  52. <exclusion>
  53. <groupId>org.apache.ant</groupId>
  54. <artifactId>ant</artifactId>
  55. </exclusion>
  56. <exclusion>
  57. <groupId>io.netty</groupId>
  58. <artifactId>netty</artifactId>
  59. </exclusion>
  60. <exclusion>
  61. <groupId>org.apache.velocity</groupId>
  62. <artifactId>velocity</artifactId>
  63. </exclusion>
  64. <exclusion>
  65. <groupId>org.slf4j</groupId>
  66. <artifactId>slf4j-api</artifactId>
  67. </exclusion>
  68. <exclusion>
  69. <artifactId>paranamer-ant</artifactId>
  70. <groupId>com.thoughtworks.paranamer</groupId>
  71. </exclusion>
  72. </exclusions>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.hadoop</groupId>
  76. <artifactId>hadoop-common</artifactId>
  77. <scope>provided</scope>
  78. <exclusions>
  79. <exclusion>
  80. <groupId>commons-el</groupId>
  81. <artifactId>commons-el</artifactId>
  82. </exclusion>
  83. <exclusion>
  84. <groupId>tomcat</groupId>
  85. <artifactId>jasper-runtime</artifactId>
  86. </exclusion>
  87. <exclusion>
  88. <groupId>tomcat</groupId>
  89. <artifactId>jasper-compiler</artifactId>
  90. </exclusion>
  91. <exclusion>
  92. <groupId>org.mortbay.jetty</groupId>
  93. <artifactId>jsp-2.1-jetty</artifactId>
  94. </exclusion>
  95. </exclusions>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.slf4j</groupId>
  99. <artifactId>slf4j-api</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.slf4j</groupId>
  103. <artifactId>slf4j-log4j12</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.hadoop</groupId>
  107. <artifactId>hadoop-annotations</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.mockito</groupId>
  111. <artifactId>mockito-all</artifactId>
  112. <scope>test</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.apache.hadoop</groupId>
  116. <artifactId>hadoop-common</artifactId>
  117. <type>test-jar</type>
  118. <scope>test</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.hadoop</groupId>
  122. <artifactId>hadoop-hdfs</artifactId>
  123. <scope>test</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.google.inject</groupId>
  127. <artifactId>guice</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.sun.jersey</groupId>
  131. <artifactId>jersey-server</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.sun.jersey.contribs</groupId>
  135. <artifactId>jersey-guice</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.google.inject.extensions</groupId>
  139. <artifactId>guice-servlet</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>junit</groupId>
  143. <artifactId>junit</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>io.netty</groupId>
  147. <artifactId>netty</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>commons-io</groupId>
  151. <artifactId>commons-io</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.hsqldb</groupId>
  155. <artifactId>hsqldb</artifactId>
  156. <scope>compile</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.fusesource.leveldbjni</groupId>
  160. <artifactId>leveldbjni-all</artifactId>
  161. </dependency>
  162. </dependencies>
  163. <build>
  164. <plugins>
  165. <plugin>
  166. <artifactId>maven-antrun-plugin</artifactId>
  167. <executions>
  168. <execution>
  169. <id>tar</id>
  170. <phase>package</phase>
  171. <goals>
  172. <goal>run</goal>
  173. </goals>
  174. <configuration>
  175. <!-- this is identical from hadoop-project-dist, eventually they must be unified -->
  176. <target if="tar">
  177. <!-- Using Unix script to preserve symlinks -->
  178. <echo file="${project.build.directory}/dist-maketar.sh">
  179. cd "${project.build.directory}"
  180. tar cf - ${project.artifactId}-${project.version} | gzip > ${project.artifactId}-${project.version}.tar.gz
  181. </echo>
  182. <exec executable="sh" dir="${project.build.directory}" failonerror="true">
  183. <arg line="./dist-maketar.sh"/>
  184. </exec>
  185. </target>
  186. </configuration>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.codehaus.mojo</groupId>
  192. <artifactId>findbugs-maven-plugin</artifactId>
  193. <configuration>
  194. <findbugsXmlOutput>true</findbugsXmlOutput>
  195. <xmlOutput>true</xmlOutput>
  196. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  197. <effort>Max</effort>
  198. </configuration>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.rat</groupId>
  202. <artifactId>apache-rat-plugin</artifactId>
  203. <configuration>
  204. <excludes>
  205. <exclude>.eclipse.templates/</exclude>
  206. <exclude>CHANGES.txt</exclude>
  207. <exclude>lib/jdiff/**</exclude>
  208. </excludes>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-surefire-plugin</artifactId>
  214. <configuration>
  215. <properties>
  216. <property>
  217. <name>listener</name>
  218. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  219. </property>
  220. </properties>
  221. </configuration>
  222. </plugin>
  223. </plugins>
  224. </build>
  225. <profiles>
  226. <profile>
  227. <id>dist</id>
  228. <activation>
  229. <activeByDefault>false</activeByDefault>
  230. </activation>
  231. <build>
  232. <plugins>
  233. <plugin>
  234. <artifactId>maven-source-plugin</artifactId>
  235. <executions>
  236. <execution>
  237. <id>attach-sources</id>
  238. <goals>
  239. <!-- avoid warning about recursion -->
  240. <goal>jar-no-fork</goal>
  241. </goals>
  242. </execution>
  243. </executions>
  244. </plugin>
  245. <plugin>
  246. <groupId>org.apache.maven.plugins</groupId>
  247. <artifactId>maven-assembly-plugin</artifactId>
  248. <dependencies>
  249. <dependency>
  250. <groupId>org.apache.hadoop</groupId>
  251. <artifactId>hadoop-assemblies</artifactId>
  252. <version>${project.version}</version>
  253. </dependency>
  254. </dependencies>
  255. <configuration>
  256. <tarLongFileMode>gnu</tarLongFileMode>
  257. <appendAssemblyId>false</appendAssemblyId>
  258. <attach>false</attach>
  259. <finalName>${project.artifactId}-${project.version}</finalName>
  260. <descriptorRefs>
  261. <descriptorRef>hadoop-mapreduce-dist</descriptorRef>
  262. </descriptorRefs>
  263. </configuration>
  264. <executions>
  265. <execution>
  266. <id>package-mapreduce</id>
  267. <phase>prepare-package</phase>
  268. <goals>
  269. <goal>single</goal>
  270. </goals>
  271. </execution>
  272. </executions>
  273. </plugin>
  274. </plugins>
  275. </build>
  276. </profile>
  277. </profiles>
  278. <reporting>
  279. <plugins>
  280. <plugin>
  281. <groupId>org.codehaus.mojo</groupId>
  282. <artifactId>findbugs-maven-plugin</artifactId>
  283. <!-- until we have reporting management cf. MSITE-443 -->
  284. <version>2.3.2</version>
  285. <configuration>
  286. <findbugsXmlOutput>true</findbugsXmlOutput>
  287. <xmlOutput>true</xmlOutput>
  288. </configuration>
  289. </plugin>
  290. </plugins>
  291. </reporting>
  292. </project>