pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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-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-core</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. <exclusions>
  107. <exclusion>
  108. <groupId>org.ow2.asm</groupId>
  109. <artifactId>asm-commons</artifactId>
  110. </exclusion>
  111. </exclusions>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.apache.hadoop</groupId>
  115. <artifactId>hadoop-hdfs-client</artifactId>
  116. <scope>test</scope>
  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. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>io.netty</groupId>
  129. <artifactId>netty-all</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.hadoop.thirdparty</groupId>
  133. <artifactId>hadoop-shaded-guava</artifactId>
  134. <scope>provided</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>commons-codec</groupId>
  138. <artifactId>commons-codec</artifactId>
  139. <scope>provided</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>commons-cli</groupId>
  143. <artifactId>commons-cli</artifactId>
  144. <scope>provided</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>commons-collections</groupId>
  148. <artifactId>commons-collections</artifactId>
  149. <scope>provided</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  153. <artifactId>jersey-test-framework-grizzly2</artifactId>
  154. <scope>test</scope>
  155. </dependency>
  156. </dependencies>
  157. <build>
  158. <plugins>
  159. <plugin>
  160. <groupId>com.github.spotbugs</groupId>
  161. <artifactId>spotbugs-maven-plugin</artifactId>
  162. <configuration>
  163. <xmlOutput>true</xmlOutput>
  164. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  165. <effort>Max</effort>
  166. </configuration>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-surefire-plugin</artifactId>
  171. <configuration>
  172. <properties>
  173. <property>
  174. <name>listener</name>
  175. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  176. </property>
  177. </properties>
  178. </configuration>
  179. </plugin>
  180. </plugins>
  181. </build>
  182. <profiles>
  183. <profile>
  184. <id>docs</id>
  185. <activation>
  186. <activeByDefault>false</activeByDefault>
  187. </activation>
  188. <properties>
  189. <jdiff.stable.api>2.7.2</jdiff.stable.api>
  190. <jdiff.stability>-unstable</jdiff.stability>
  191. <jdiff.javadoc.maxmemory>512m</jdiff.javadoc.maxmemory>
  192. </properties>
  193. <dependencies>
  194. <dependency>
  195. <groupId>xerces</groupId>
  196. <artifactId>xercesImpl</artifactId>
  197. <version>${xerces.jdiff.version}</version>
  198. </dependency>
  199. </dependencies>
  200. <build>
  201. <plugins>
  202. <plugin>
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-javadoc-plugin</artifactId>
  205. <executions>
  206. <execution>
  207. <goals>
  208. <goal>javadoc-no-fork</goal>
  209. </goals>
  210. <phase>prepare-package</phase>
  211. </execution>
  212. </executions>
  213. </plugin>
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-dependency-plugin</artifactId>
  217. <executions>
  218. <execution>
  219. <id>site</id>
  220. <phase>prepare-package</phase>
  221. <goals>
  222. <goal>copy</goal>
  223. </goals>
  224. <configuration>
  225. <artifactItems>
  226. <artifactItem>
  227. <groupId>jdiff</groupId>
  228. <artifactId>jdiff</artifactId>
  229. <version>${jdiff.version}</version>
  230. <overWrite>false</overWrite>
  231. <outputDirectory>${project.build.directory}</outputDirectory>
  232. <destFileName>jdiff.jar</destFileName>
  233. </artifactItem>
  234. <artifactItem>
  235. <groupId>org.apache.hadoop</groupId>
  236. <artifactId>hadoop-annotations</artifactId>
  237. <version>${project.version}</version>
  238. <overWrite>false</overWrite>
  239. <outputDirectory>${project.build.directory}</outputDirectory>
  240. <destFileName>hadoop-annotations.jar</destFileName>
  241. </artifactItem>
  242. <artifactItem>
  243. <groupId>xerces</groupId>
  244. <artifactId>xercesImpl</artifactId>
  245. <version>${xerces.version.jdiff}</version>
  246. <overWrite>false</overWrite>
  247. <outputDirectory>${project.build.directory}</outputDirectory>
  248. <destFileName>xerces.jar</destFileName>
  249. </artifactItem>
  250. </artifactItems>
  251. </configuration>
  252. </execution>
  253. </executions>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-antrun-plugin</artifactId>
  258. <executions>
  259. <execution>
  260. <id>site</id>
  261. <phase>prepare-package</phase>
  262. <goals>
  263. <goal>run</goal>
  264. </goals>
  265. <configuration>
  266. <target if="should.run.jdiff">
  267. <!-- Jdiff -->
  268. <mkdir dir="${project.build.directory}/site/jdiff/xml"/>
  269. <javadoc maxmemory="${jdiff.javadoc.maxmemory}" verbose="yes">
  270. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  271. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar">
  272. <param name="-apidir" value="${project.build.directory}/site/jdiff/xml"/>
  273. <param name="-apiname" value="${project.name} ${project.version}"/>
  274. <param name="${jdiff.stability}"/>
  275. </doclet>
  276. <packageset dir="${basedir}/src/main/java"/>
  277. <classpath>
  278. <path refid="maven.compile.classpath"/>
  279. </classpath>
  280. </javadoc>
  281. <javadoc sourcepath="${basedir}/src/main/java"
  282. destdir="${project.build.directory}/site/jdiff/xml"
  283. sourceFiles="${dev-support.relative.dir}/jdiff/Null.java"
  284. maxmemory="${jdiff.javadoc.maxmemory}">
  285. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  286. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar:${project.build.directory}/xerces.jar">
  287. <param name="-oldapi" value="${project.name} ${jdiff.stable.api}"/>
  288. <param name="-newapi" value="${project.name} ${project.version}"/>
  289. <param name="-oldapidir" value="${basedir}/${dev-support.relative.dir}/jdiff"/>
  290. <param name="-newapidir" value="${project.build.directory}/site/jdiff/xml"/>
  291. <param name="-javadocold"
  292. value="https://hadoop.apache.org/docs/r${jdiff.stable.api}/api/"/>
  293. <param name="-javadocnew" value="${project.build.directory}/site/api/"/>
  294. <param name="-stats"/>
  295. <param name="${jdiff.stability}"/>
  296. </doclet>
  297. <classpath>
  298. <path refid="maven.compile.classpath"/>
  299. </classpath>
  300. </javadoc>
  301. <property name="compile_classpath" refid="maven.compile.classpath"/>
  302. </target>
  303. </configuration>
  304. </execution>
  305. </executions>
  306. </plugin>
  307. </plugins>
  308. </build>
  309. </profile>
  310. </profiles>
  311. <modules>
  312. <module>hadoop-mapreduce-client-core</module>
  313. <module>hadoop-mapreduce-client-common</module>
  314. <module>hadoop-mapreduce-client-shuffle</module>
  315. <module>hadoop-mapreduce-client-app</module>
  316. <module>hadoop-mapreduce-client-jobclient</module>
  317. <module>hadoop-mapreduce-client-hs</module>
  318. <module>hadoop-mapreduce-client-hs-plugins</module>
  319. <module>hadoop-mapreduce-client-nativetask</module>
  320. <module>hadoop-mapreduce-client-uploader</module>
  321. </modules>
  322. </project>