pom.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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.5.0-SNAPSHOT</version>
  19. <relativePath>../hadoop-project</relativePath>
  20. </parent>
  21. <artifactId>hadoop-mapreduce</artifactId>
  22. <version>3.5.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. <!--
  39. Do not add 3rd party dependencies here, add them to the POM of the leaf module.
  40. The dependencies in this module are for the assembly plugin, packaging purposes.
  41. -->
  42. <dependencies>
  43. <dependency>
  44. <groupId>org.apache.hadoop</groupId>
  45. <artifactId>hadoop-mapreduce-client-app</artifactId>
  46. <version>${project.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-mapreduce-client-common</artifactId>
  51. <version>${project.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.hadoop</groupId>
  55. <artifactId>hadoop-mapreduce-client-core</artifactId>
  56. <version>${project.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.hadoop</groupId>
  60. <artifactId>hadoop-mapreduce-client-hs</artifactId>
  61. <version>${project.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.hadoop</groupId>
  65. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  66. <version>${project.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.hadoop</groupId>
  70. <artifactId>hadoop-mapreduce-client-nativetask</artifactId>
  71. <version>${project.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.hadoop</groupId>
  75. <artifactId>hadoop-mapreduce-client-shuffle</artifactId>
  76. <version>${project.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.hadoop</groupId>
  80. <artifactId>hadoop-mapreduce-examples</artifactId>
  81. <version>${project.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.hadoop</groupId>
  85. <artifactId>hadoop-mapreduce-client-hs-plugins</artifactId>
  86. <version>${project.version}</version>
  87. <scope>provided</scope>
  88. </dependency>
  89. </dependencies>
  90. <build>
  91. <plugins>
  92. <plugin>
  93. <artifactId>maven-antrun-plugin</artifactId>
  94. <executions>
  95. <execution>
  96. <id>tar</id>
  97. <phase>package</phase>
  98. <goals>
  99. <goal>run</goal>
  100. </goals>
  101. <configuration>
  102. <!-- this is identical from hadoop-project-dist, eventually they must be unified -->
  103. <target if="tar">
  104. <!-- Using Unix script to preserve symlinks -->
  105. <echo file="${project.build.directory}/dist-maketar.sh">
  106. cd "${project.build.directory}"
  107. tar cf - ${project.artifactId}-${project.version} | gzip > ${project.artifactId}-${project.version}.tar.gz
  108. </echo>
  109. <exec executable="${shell-executable}" dir="${project.build.directory}" failonerror="true">
  110. <arg line="./dist-maketar.sh"/>
  111. </exec>
  112. </target>
  113. </configuration>
  114. </execution>
  115. </executions>
  116. </plugin>
  117. <plugin>
  118. <groupId>com.github.spotbugs</groupId>
  119. <artifactId>spotbugs-maven-plugin</artifactId>
  120. <configuration>
  121. <xmlOutput>true</xmlOutput>
  122. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  123. <effort>Max</effort>
  124. </configuration>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.rat</groupId>
  128. <artifactId>apache-rat-plugin</artifactId>
  129. <configuration>
  130. <excludes>
  131. <exclude>.eclipse.templates/</exclude>
  132. <exclude>lib/jdiff/**</exclude>
  133. <exclude>dev-support/jdiff/**</exclude>
  134. </excludes>
  135. </configuration>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.apache.maven.plugins</groupId>
  139. <artifactId>maven-surefire-plugin</artifactId>
  140. <configuration>
  141. <properties>
  142. <property>
  143. <name>listener</name>
  144. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  145. </property>
  146. </properties>
  147. </configuration>
  148. </plugin>
  149. </plugins>
  150. </build>
  151. <profiles>
  152. <profile>
  153. <id>dist</id>
  154. <activation>
  155. <activeByDefault>false</activeByDefault>
  156. </activation>
  157. <build>
  158. <plugins>
  159. <plugin>
  160. <artifactId>maven-source-plugin</artifactId>
  161. <executions>
  162. <execution>
  163. <id>attach-sources</id>
  164. <goals>
  165. <!-- avoid warning about recursion -->
  166. <goal>jar-no-fork</goal>
  167. </goals>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-antrun-plugin</artifactId>
  174. <executions>
  175. <execution>
  176. <id>dist</id>
  177. <phase>prepare-package</phase>
  178. <goals>
  179. <goal>run</goal>
  180. </goals>
  181. <configuration>
  182. <target>
  183. <echo file="${project.build.directory}/dist-copynativelibs.sh">
  184. LIB_DIR="${mr.basedir}/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/target/native/target/usr/local/lib"
  185. if [ -d $${LIB_DIR} ] ; then
  186. TARGET_DIR="${project.build.directory}/${project.artifactId}-${project.version}/lib/native"
  187. mkdir -p $${TARGET_DIR}
  188. cp -R $${LIB_DIR}/lib* $${TARGET_DIR}
  189. fi
  190. </echo>
  191. <exec executable="${shell-executable}" dir="${project.build.directory}" failonerror="true">
  192. <arg line="./dist-copynativelibs.sh"/>
  193. </exec>
  194. </target>
  195. </configuration>
  196. </execution>
  197. </executions>
  198. </plugin>
  199. <plugin>
  200. <groupId>org.apache.maven.plugins</groupId>
  201. <artifactId>maven-assembly-plugin</artifactId>
  202. <dependencies>
  203. <dependency>
  204. <groupId>org.apache.hadoop</groupId>
  205. <artifactId>hadoop-assemblies</artifactId>
  206. <version>${project.version}</version>
  207. </dependency>
  208. </dependencies>
  209. <configuration>
  210. <tarLongFileMode>gnu</tarLongFileMode>
  211. <appendAssemblyId>false</appendAssemblyId>
  212. <attach>false</attach>
  213. <finalName>${project.artifactId}-${project.version}</finalName>
  214. <descriptorRefs>
  215. <descriptorRef>hadoop-mapreduce-dist</descriptorRef>
  216. </descriptorRefs>
  217. </configuration>
  218. <executions>
  219. <execution>
  220. <id>package-mapreduce</id>
  221. <phase>prepare-package</phase>
  222. <goals>
  223. <goal>single</goal>
  224. </goals>
  225. </execution>
  226. </executions>
  227. </plugin>
  228. </plugins>
  229. </build>
  230. </profile>
  231. </profiles>
  232. <reporting>
  233. <plugins>
  234. <plugin>
  235. <groupId>com.github.spotbugs</groupId>
  236. <artifactId>spotbugs-maven-plugin</artifactId>
  237. <configuration>
  238. <xmlOutput>true</xmlOutput>
  239. </configuration>
  240. </plugin>
  241. </plugins>
  242. </reporting>
  243. </project>