pom.xml 12 KB

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