pom.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. </dependencies>
  84. <build>
  85. <plugins>
  86. <plugin>
  87. <artifactId>maven-antrun-plugin</artifactId>
  88. <executions>
  89. <execution>
  90. <id>tar</id>
  91. <phase>package</phase>
  92. <goals>
  93. <goal>run</goal>
  94. </goals>
  95. <configuration>
  96. <!-- this is identical from hadoop-project-dist, eventually they must be unified -->
  97. <target if="tar">
  98. <!-- Using Unix script to preserve symlinks -->
  99. <echo file="${project.build.directory}/dist-maketar.sh">
  100. cd "${project.build.directory}"
  101. tar cf - ${project.artifactId}-${project.version} | gzip > ${project.artifactId}-${project.version}.tar.gz
  102. </echo>
  103. <exec executable="${shell-executable}" dir="${project.build.directory}" failonerror="true">
  104. <arg line="./dist-maketar.sh"/>
  105. </exec>
  106. </target>
  107. </configuration>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>com.github.spotbugs</groupId>
  113. <artifactId>spotbugs-maven-plugin</artifactId>
  114. <configuration>
  115. <xmlOutput>true</xmlOutput>
  116. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  117. <effort>Max</effort>
  118. </configuration>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.rat</groupId>
  122. <artifactId>apache-rat-plugin</artifactId>
  123. <configuration>
  124. <excludes>
  125. <exclude>.eclipse.templates/</exclude>
  126. <exclude>lib/jdiff/**</exclude>
  127. <exclude>dev-support/jdiff/**</exclude>
  128. </excludes>
  129. </configuration>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-surefire-plugin</artifactId>
  134. <configuration>
  135. <properties>
  136. <property>
  137. <name>listener</name>
  138. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  139. </property>
  140. </properties>
  141. </configuration>
  142. </plugin>
  143. </plugins>
  144. </build>
  145. <profiles>
  146. <profile>
  147. <id>dist</id>
  148. <activation>
  149. <activeByDefault>false</activeByDefault>
  150. </activation>
  151. <build>
  152. <plugins>
  153. <plugin>
  154. <artifactId>maven-source-plugin</artifactId>
  155. <executions>
  156. <execution>
  157. <id>attach-sources</id>
  158. <goals>
  159. <!-- avoid warning about recursion -->
  160. <goal>jar-no-fork</goal>
  161. </goals>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-antrun-plugin</artifactId>
  168. <executions>
  169. <execution>
  170. <id>dist</id>
  171. <phase>prepare-package</phase>
  172. <goals>
  173. <goal>run</goal>
  174. </goals>
  175. <configuration>
  176. <target>
  177. <echo file="${project.build.directory}/dist-copynativelibs.sh">
  178. LIB_DIR="${mr.basedir}/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/target/native/target/usr/local/lib"
  179. if [ -d $${LIB_DIR} ] ; then
  180. TARGET_DIR="${project.build.directory}/${project.artifactId}-${project.version}/lib/native"
  181. mkdir -p $${TARGET_DIR}
  182. cp -R $${LIB_DIR}/lib* $${TARGET_DIR}
  183. fi
  184. </echo>
  185. <exec executable="${shell-executable}" dir="${project.build.directory}" failonerror="true">
  186. <arg line="./dist-copynativelibs.sh"/>
  187. </exec>
  188. </target>
  189. </configuration>
  190. </execution>
  191. </executions>
  192. </plugin>
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-assembly-plugin</artifactId>
  196. <dependencies>
  197. <dependency>
  198. <groupId>org.apache.hadoop</groupId>
  199. <artifactId>hadoop-assemblies</artifactId>
  200. <version>${project.version}</version>
  201. </dependency>
  202. </dependencies>
  203. <configuration>
  204. <tarLongFileMode>gnu</tarLongFileMode>
  205. <appendAssemblyId>false</appendAssemblyId>
  206. <attach>false</attach>
  207. <finalName>${project.artifactId}-${project.version}</finalName>
  208. <descriptorRefs>
  209. <descriptorRef>hadoop-mapreduce-dist</descriptorRef>
  210. </descriptorRefs>
  211. </configuration>
  212. <executions>
  213. <execution>
  214. <id>package-mapreduce</id>
  215. <phase>prepare-package</phase>
  216. <goals>
  217. <goal>single</goal>
  218. </goals>
  219. </execution>
  220. </executions>
  221. </plugin>
  222. </plugins>
  223. </build>
  224. </profile>
  225. </profiles>
  226. <reporting>
  227. <plugins>
  228. <plugin>
  229. <groupId>com.github.spotbugs</groupId>
  230. <artifactId>spotbugs-maven-plugin</artifactId>
  231. <configuration>
  232. <xmlOutput>true</xmlOutput>
  233. </configuration>
  234. </plugin>
  235. </plugins>
  236. </reporting>
  237. </project>