pom.xml 10 KB

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