pom.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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 https://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.10.0-SNAPSHOT</version>
  19. <relativePath>../hadoop-project</relativePath>
  20. </parent>
  21. <groupId>org.apache.hadoop</groupId>
  22. <artifactId>hadoop-mapreduce</artifactId>
  23. <version>2.10.0-SNAPSHOT</version>
  24. <packaging>pom</packaging>
  25. <name>Apache Hadoop MapReduce</name>
  26. <url>https://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. </dependency>
  79. <dependency>
  80. <groupId>org.slf4j</groupId>
  81. <artifactId>slf4j-api</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.slf4j</groupId>
  85. <artifactId>slf4j-log4j12</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.hadoop</groupId>
  89. <artifactId>hadoop-annotations</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.mockito</groupId>
  93. <artifactId>mockito-all</artifactId>
  94. <scope>test</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.apache.hadoop</groupId>
  98. <artifactId>hadoop-common</artifactId>
  99. <type>test-jar</type>
  100. <scope>test</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.apache.hadoop</groupId>
  104. <artifactId>hadoop-hdfs</artifactId>
  105. <scope>test</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.google.inject</groupId>
  109. <artifactId>guice</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.sun.jersey</groupId>
  113. <artifactId>jersey-server</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.sun.jersey.contribs</groupId>
  117. <artifactId>jersey-guice</artifactId>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.google.inject.extensions</groupId>
  121. <artifactId>guice-servlet</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>junit</groupId>
  125. <artifactId>junit</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>io.netty</groupId>
  129. <artifactId>netty</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>commons-io</groupId>
  133. <artifactId>commons-io</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.hsqldb</groupId>
  137. <artifactId>hsqldb</artifactId>
  138. <scope>compile</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.fusesource.leveldbjni</groupId>
  142. <artifactId>leveldbjni-all</artifactId>
  143. </dependency>
  144. </dependencies>
  145. <build>
  146. <plugins>
  147. <plugin>
  148. <artifactId>maven-antrun-plugin</artifactId>
  149. <executions>
  150. <execution>
  151. <id>tar</id>
  152. <phase>package</phase>
  153. <goals>
  154. <goal>run</goal>
  155. </goals>
  156. <configuration>
  157. <!-- this is identical from hadoop-project-dist, eventually they must be unified -->
  158. <target if="tar">
  159. <!-- Using Unix script to preserve symlinks -->
  160. <echo file="${project.build.directory}/dist-maketar.sh">
  161. cd "${project.build.directory}"
  162. tar cf - ${project.artifactId}-${project.version} | gzip > ${project.artifactId}-${project.version}.tar.gz
  163. </echo>
  164. <exec executable="${shell-executable}" dir="${project.build.directory}" failonerror="true">
  165. <arg line="./dist-maketar.sh"/>
  166. </exec>
  167. </target>
  168. </configuration>
  169. </execution>
  170. </executions>
  171. </plugin>
  172. <plugin>
  173. <groupId>org.codehaus.mojo</groupId>
  174. <artifactId>findbugs-maven-plugin</artifactId>
  175. <configuration>
  176. <findbugsXmlOutput>true</findbugsXmlOutput>
  177. <xmlOutput>true</xmlOutput>
  178. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  179. <effort>Max</effort>
  180. </configuration>
  181. </plugin>
  182. <plugin>
  183. <groupId>org.apache.rat</groupId>
  184. <artifactId>apache-rat-plugin</artifactId>
  185. <configuration>
  186. <excludes>
  187. <exclude>.eclipse.templates/</exclude>
  188. <exclude>lib/jdiff/**</exclude>
  189. <exclude>dev-support/jdiff/**</exclude>
  190. </excludes>
  191. </configuration>
  192. </plugin>
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-surefire-plugin</artifactId>
  196. <configuration>
  197. <properties>
  198. <property>
  199. <name>listener</name>
  200. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  201. </property>
  202. </properties>
  203. </configuration>
  204. </plugin>
  205. </plugins>
  206. </build>
  207. <profiles>
  208. <profile>
  209. <id>dist</id>
  210. <activation>
  211. <activeByDefault>false</activeByDefault>
  212. </activation>
  213. <build>
  214. <plugins>
  215. <plugin>
  216. <artifactId>maven-source-plugin</artifactId>
  217. <executions>
  218. <execution>
  219. <id>attach-sources</id>
  220. <goals>
  221. <!-- avoid warning about recursion -->
  222. <goal>jar-no-fork</goal>
  223. </goals>
  224. </execution>
  225. </executions>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-assembly-plugin</artifactId>
  230. <dependencies>
  231. <dependency>
  232. <groupId>org.apache.hadoop</groupId>
  233. <artifactId>hadoop-assemblies</artifactId>
  234. <version>${project.version}</version>
  235. </dependency>
  236. </dependencies>
  237. <configuration>
  238. <tarLongFileMode>gnu</tarLongFileMode>
  239. <appendAssemblyId>false</appendAssemblyId>
  240. <attach>false</attach>
  241. <finalName>${project.artifactId}-${project.version}</finalName>
  242. <descriptorRefs>
  243. <descriptorRef>hadoop-mapreduce-dist</descriptorRef>
  244. </descriptorRefs>
  245. </configuration>
  246. <executions>
  247. <execution>
  248. <id>package-mapreduce</id>
  249. <phase>prepare-package</phase>
  250. <goals>
  251. <goal>single</goal>
  252. </goals>
  253. </execution>
  254. </executions>
  255. </plugin>
  256. </plugins>
  257. </build>
  258. </profile>
  259. </profiles>
  260. <reporting>
  261. <plugins>
  262. <plugin>
  263. <groupId>org.codehaus.mojo</groupId>
  264. <artifactId>findbugs-maven-plugin</artifactId>
  265. <!-- until we have reporting management cf. MSITE-443 -->
  266. <version>2.3.2</version>
  267. <configuration>
  268. <findbugsXmlOutput>true</findbugsXmlOutput>
  269. <xmlOutput>true</xmlOutput>
  270. </configuration>
  271. </plugin>
  272. </plugins>
  273. </reporting>
  274. </project>