pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <?xml version="1.0"?>
  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"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  16. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.apache.hadoop</groupId>
  20. <artifactId>hadoop-project</artifactId>
  21. <version>3.5.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-mapreduce-client</artifactId>
  25. <version>3.5.0-SNAPSHOT</version>
  26. <name>Apache Hadoop MapReduce Client</name>
  27. <packaging>pom</packaging>
  28. <properties>
  29. <hadoop.common.build.dir>${basedir}/../../../hadoop-common-project/hadoop-common/target</hadoop.common.build.dir>
  30. <!-- Used by jdiff -->
  31. <!-- Antrun cannot resolve yarn.basedir, so we need to setup something else -->
  32. <dev-support.relative.dir>../dev-support</dev-support.relative.dir>
  33. </properties>
  34. <dependencies>
  35. <dependency>
  36. <groupId>com.google.protobuf</groupId>
  37. <artifactId>protobuf-java</artifactId>
  38. <scope>${transient.protobuf2.scope}</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.avro</groupId>
  42. <artifactId>avro</artifactId>
  43. <exclusions>
  44. <exclusion>
  45. <groupId>org.eclipse.jetty</groupId>
  46. <artifactId>jetty-server</artifactId>
  47. </exclusion>
  48. <exclusion>
  49. <groupId>org.apache.ant</groupId>
  50. <artifactId>ant</artifactId>
  51. </exclusion>
  52. <exclusion>
  53. <groupId>org.jboss.netty</groupId>
  54. <artifactId>netty</artifactId>
  55. </exclusion>
  56. <exclusion>
  57. <groupId>org.apache.velocity</groupId>
  58. <artifactId>velocity</artifactId>
  59. </exclusion>
  60. <exclusion>
  61. <groupId>org.slf4j</groupId>
  62. <artifactId>slf4j-api</artifactId>
  63. </exclusion>
  64. <exclusion>
  65. <artifactId>paranamer-ant</artifactId>
  66. <groupId>com.thoughtworks.paranamer</groupId>
  67. </exclusion>
  68. <exclusion>
  69. <groupId>org.xerial.snappy</groupId>
  70. <artifactId>snappy-java</artifactId>
  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-reload4j</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-core</artifactId>
  94. <version>4.11.0</version>
  95. <scope>test</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.apache.hadoop</groupId>
  99. <artifactId>hadoop-common</artifactId>
  100. <type>test-jar</type>
  101. <scope>test</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.apache.hadoop</groupId>
  105. <artifactId>hadoop-hdfs</artifactId>
  106. <scope>test</scope>
  107. <exclusions>
  108. <exclusion>
  109. <groupId>org.ow2.asm</groupId>
  110. <artifactId>asm-commons</artifactId>
  111. </exclusion>
  112. </exclusions>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.apache.hadoop</groupId>
  116. <artifactId>hadoop-hdfs-client</artifactId>
  117. <scope>test</scope>
  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. <scope>test</scope>
  127. </dependency>
  128. <dependency>
  129. <groupId>io.netty</groupId>
  130. <artifactId>netty-all</artifactId>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.apache.hadoop.thirdparty</groupId>
  134. <artifactId>hadoop-shaded-guava</artifactId>
  135. <scope>provided</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>commons-codec</groupId>
  139. <artifactId>commons-codec</artifactId>
  140. <scope>provided</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>commons-cli</groupId>
  144. <artifactId>commons-cli</artifactId>
  145. <scope>provided</scope>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.apache.commons</groupId>
  149. <artifactId>commons-collections4</artifactId>
  150. <scope>provided</scope>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.glassfish.jersey.test-framework</groupId>
  154. <artifactId>jersey-test-framework-core</artifactId>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.glassfish.jersey.test-framework.providers</groupId>
  159. <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
  160. <scope>test</scope>
  161. </dependency>
  162. </dependencies>
  163. <build>
  164. <plugins>
  165. <plugin>
  166. <groupId>com.github.spotbugs</groupId>
  167. <artifactId>spotbugs-maven-plugin</artifactId>
  168. <configuration>
  169. <xmlOutput>true</xmlOutput>
  170. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  171. <effort>Max</effort>
  172. </configuration>
  173. </plugin>
  174. <plugin>
  175. <groupId>org.apache.maven.plugins</groupId>
  176. <artifactId>maven-surefire-plugin</artifactId>
  177. <configuration>
  178. <properties>
  179. <property>
  180. <name>listener</name>
  181. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  182. </property>
  183. </properties>
  184. </configuration>
  185. </plugin>
  186. </plugins>
  187. </build>
  188. <profiles>
  189. <profile>
  190. <id>docs</id>
  191. <activation>
  192. <activeByDefault>false</activeByDefault>
  193. </activation>
  194. <properties>
  195. <jdiff.stable.api>2.7.2</jdiff.stable.api>
  196. <jdiff.stability>-unstable</jdiff.stability>
  197. <jdiff.javadoc.maxmemory>512m</jdiff.javadoc.maxmemory>
  198. </properties>
  199. <dependencies>
  200. <dependency>
  201. <groupId>xerces</groupId>
  202. <artifactId>xercesImpl</artifactId>
  203. <version>${xerces.jdiff.version}</version>
  204. </dependency>
  205. </dependencies>
  206. <build>
  207. <plugins>
  208. <plugin>
  209. <groupId>org.apache.maven.plugins</groupId>
  210. <artifactId>maven-javadoc-plugin</artifactId>
  211. <executions>
  212. <execution>
  213. <goals>
  214. <goal>javadoc-no-fork</goal>
  215. </goals>
  216. <phase>prepare-package</phase>
  217. </execution>
  218. </executions>
  219. </plugin>
  220. <plugin>
  221. <groupId>org.apache.maven.plugins</groupId>
  222. <artifactId>maven-dependency-plugin</artifactId>
  223. <executions>
  224. <execution>
  225. <id>site</id>
  226. <phase>prepare-package</phase>
  227. <goals>
  228. <goal>copy</goal>
  229. </goals>
  230. <configuration>
  231. <artifactItems>
  232. <artifactItem>
  233. <groupId>jdiff</groupId>
  234. <artifactId>jdiff</artifactId>
  235. <version>${jdiff.version}</version>
  236. <overWrite>false</overWrite>
  237. <outputDirectory>${project.build.directory}</outputDirectory>
  238. <destFileName>jdiff.jar</destFileName>
  239. </artifactItem>
  240. <artifactItem>
  241. <groupId>org.apache.hadoop</groupId>
  242. <artifactId>hadoop-annotations</artifactId>
  243. <version>${project.version}</version>
  244. <overWrite>false</overWrite>
  245. <outputDirectory>${project.build.directory}</outputDirectory>
  246. <destFileName>hadoop-annotations.jar</destFileName>
  247. </artifactItem>
  248. <artifactItem>
  249. <groupId>xerces</groupId>
  250. <artifactId>xercesImpl</artifactId>
  251. <version>${xerces.version.jdiff}</version>
  252. <overWrite>false</overWrite>
  253. <outputDirectory>${project.build.directory}</outputDirectory>
  254. <destFileName>xerces.jar</destFileName>
  255. </artifactItem>
  256. </artifactItems>
  257. </configuration>
  258. </execution>
  259. </executions>
  260. </plugin>
  261. <plugin>
  262. <groupId>org.apache.maven.plugins</groupId>
  263. <artifactId>maven-antrun-plugin</artifactId>
  264. <executions>
  265. <execution>
  266. <id>site</id>
  267. <phase>prepare-package</phase>
  268. <goals>
  269. <goal>run</goal>
  270. </goals>
  271. <configuration>
  272. <target if="should.run.jdiff">
  273. <!-- Jdiff -->
  274. <mkdir dir="${project.build.directory}/site/jdiff/xml"/>
  275. <javadoc maxmemory="${jdiff.javadoc.maxmemory}" verbose="yes">
  276. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  277. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar">
  278. <param name="-apidir" value="${project.build.directory}/site/jdiff/xml"/>
  279. <param name="-apiname" value="${project.name} ${project.version}"/>
  280. <param name="${jdiff.stability}"/>
  281. </doclet>
  282. <packageset dir="${basedir}/src/main/java"/>
  283. <classpath>
  284. <path refid="maven.compile.classpath"/>
  285. </classpath>
  286. </javadoc>
  287. <javadoc sourcepath="${basedir}/src/main/java"
  288. destdir="${project.build.directory}/site/jdiff/xml"
  289. sourceFiles="${dev-support.relative.dir}/jdiff/Null.java"
  290. maxmemory="${jdiff.javadoc.maxmemory}">
  291. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  292. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar:${project.build.directory}/xerces.jar">
  293. <param name="-oldapi" value="${project.name} ${jdiff.stable.api}"/>
  294. <param name="-newapi" value="${project.name} ${project.version}"/>
  295. <param name="-oldapidir" value="${basedir}/${dev-support.relative.dir}/jdiff"/>
  296. <param name="-newapidir" value="${project.build.directory}/site/jdiff/xml"/>
  297. <param name="-javadocold"
  298. value="https://hadoop.apache.org/docs/r${jdiff.stable.api}/api/"/>
  299. <param name="-javadocnew" value="${project.build.directory}/site/api/"/>
  300. <param name="-stats"/>
  301. <param name="${jdiff.stability}"/>
  302. </doclet>
  303. <classpath>
  304. <path refid="maven.compile.classpath"/>
  305. </classpath>
  306. </javadoc>
  307. <property name="compile_classpath" refid="maven.compile.classpath"/>
  308. </target>
  309. </configuration>
  310. </execution>
  311. </executions>
  312. </plugin>
  313. </plugins>
  314. </build>
  315. </profile>
  316. </profiles>
  317. <modules>
  318. <module>hadoop-mapreduce-client-core</module>
  319. <module>hadoop-mapreduce-client-common</module>
  320. <module>hadoop-mapreduce-client-shuffle</module>
  321. <module>hadoop-mapreduce-client-app</module>
  322. <module>hadoop-mapreduce-client-jobclient</module>
  323. <module>hadoop-mapreduce-client-hs</module>
  324. <module>hadoop-mapreduce-client-hs-plugins</module>
  325. <module>hadoop-mapreduce-client-nativetask</module>
  326. <module>hadoop-mapreduce-client-uploader</module>
  327. </modules>
  328. </project>