pom.xml 12 KB

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