pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. http://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>2.8.1</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-mapreduce-client</artifactId>
  26. <version>2.8.1</version>
  27. <name>Apache Hadoop MapReduce Client</name>
  28. <packaging>pom</packaging>
  29. <properties>
  30. <hadoop.common.build.dir>${basedir}/../../../hadoop-common-project/hadoop-common/target</hadoop.common.build.dir>
  31. <!-- Used by jdiff -->
  32. <!-- Antrun cannot resolve yarn.basedir, so we need to setup something else -->
  33. <dev-support.relative.dir>../dev-support</dev-support.relative.dir>
  34. </properties>
  35. <dependencies>
  36. <dependency>
  37. <groupId>com.google.protobuf</groupId>
  38. <artifactId>protobuf-java</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.avro</groupId>
  42. <artifactId>avro</artifactId>
  43. <exclusions>
  44. <exclusion>
  45. <groupId>org.mortbay.jetty</groupId>
  46. <artifactId>jetty</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. </exclusions>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.hadoop</groupId>
  72. <artifactId>hadoop-common</artifactId>
  73. <scope>provided</scope>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.slf4j</groupId>
  77. <artifactId>slf4j-api</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.slf4j</groupId>
  81. <artifactId>slf4j-log4j12</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.hadoop</groupId>
  85. <artifactId>hadoop-annotations</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.mockito</groupId>
  89. <artifactId>mockito-all</artifactId>
  90. <scope>test</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.hadoop</groupId>
  94. <artifactId>hadoop-common</artifactId>
  95. <type>test-jar</type>
  96. <scope>test</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.hadoop</groupId>
  100. <artifactId>hadoop-hdfs</artifactId>
  101. <scope>test</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.google.inject.extensions</groupId>
  105. <artifactId>guice-servlet</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>junit</groupId>
  109. <artifactId>junit</artifactId>
  110. <scope>test</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>io.netty</groupId>
  114. <artifactId>netty</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>commons-logging</groupId>
  118. <artifactId>commons-logging</artifactId>
  119. <scope>provided</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.google.guava</groupId>
  123. <artifactId>guava</artifactId>
  124. <scope>provided</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>commons-codec</groupId>
  128. <artifactId>commons-codec</artifactId>
  129. <scope>provided</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>commons-cli</groupId>
  133. <artifactId>commons-cli</artifactId>
  134. <scope>provided</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>commons-lang</groupId>
  138. <artifactId>commons-lang</artifactId>
  139. <scope>provided</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>commons-collections</groupId>
  143. <artifactId>commons-collections</artifactId>
  144. <scope>provided</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  148. <artifactId>jersey-test-framework-grizzly2</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. </dependencies>
  152. <build>
  153. <plugins>
  154. <plugin>
  155. <groupId>org.codehaus.mojo</groupId>
  156. <artifactId>findbugs-maven-plugin</artifactId>
  157. <configuration>
  158. <findbugsXmlOutput>true</findbugsXmlOutput>
  159. <xmlOutput>true</xmlOutput>
  160. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  161. <effort>Max</effort>
  162. </configuration>
  163. </plugin>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-surefire-plugin</artifactId>
  167. <configuration>
  168. <properties>
  169. <property>
  170. <name>listener</name>
  171. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  172. </property>
  173. </properties>
  174. </configuration>
  175. </plugin>
  176. </plugins>
  177. </build>
  178. <profiles>
  179. <profile>
  180. <id>docs</id>
  181. <activation>
  182. <activeByDefault>false</activeByDefault>
  183. </activation>
  184. <properties>
  185. <jdiff.stable.api>2.7.2</jdiff.stable.api>
  186. <jdiff.stability>-unstable</jdiff.stability>
  187. <jdiff.javadoc.maxmemory>512m</jdiff.javadoc.maxmemory>
  188. </properties>
  189. <build>
  190. <plugins>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-javadoc-plugin</artifactId>
  194. <executions>
  195. <execution>
  196. <goals>
  197. <goal>javadoc</goal>
  198. </goals>
  199. <phase>prepare-package</phase>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-dependency-plugin</artifactId>
  206. <executions>
  207. <execution>
  208. <id>site</id>
  209. <phase>prepare-package</phase>
  210. <goals>
  211. <goal>copy</goal>
  212. </goals>
  213. <configuration>
  214. <artifactItems>
  215. <artifactItem>
  216. <groupId>jdiff</groupId>
  217. <artifactId>jdiff</artifactId>
  218. <version>${jdiff.version}</version>
  219. <overWrite>false</overWrite>
  220. <outputDirectory>${project.build.directory}</outputDirectory>
  221. <destFileName>jdiff.jar</destFileName>
  222. </artifactItem>
  223. <artifactItem>
  224. <groupId>org.apache.hadoop</groupId>
  225. <artifactId>hadoop-annotations</artifactId>
  226. <version>${project.version}</version>
  227. <overWrite>false</overWrite>
  228. <outputDirectory>${project.build.directory}</outputDirectory>
  229. <destFileName>hadoop-annotations.jar</destFileName>
  230. </artifactItem>
  231. <artifactItem>
  232. <groupId>xerces</groupId>
  233. <artifactId>xercesImpl</artifactId>
  234. <version>${xerces.version.jdiff}</version>
  235. <overWrite>false</overWrite>
  236. <outputDirectory>${project.build.directory}</outputDirectory>
  237. <destFileName>xerces.jar</destFileName>
  238. </artifactItem>
  239. </artifactItems>
  240. </configuration>
  241. </execution>
  242. </executions>
  243. </plugin>
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-antrun-plugin</artifactId>
  247. <executions>
  248. <execution>
  249. <id>site</id>
  250. <phase>prepare-package</phase>
  251. <goals>
  252. <goal>run</goal>
  253. </goals>
  254. <configuration>
  255. <target if="should.run.jdiff">
  256. <!-- Jdiff -->
  257. <mkdir dir="${project.build.directory}/site/jdiff/xml"/>
  258. <javadoc maxmemory="${jdiff.javadoc.maxmemory}" verbose="yes">
  259. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  260. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar">
  261. <param name="-apidir" value="${project.build.directory}/site/jdiff/xml"/>
  262. <param name="-apiname" value="${project.name} ${project.version}"/>
  263. <param name="${jdiff.stability}"/>
  264. </doclet>
  265. <packageset dir="${basedir}/src/main/java"/>
  266. <classpath>
  267. <path refid="maven.compile.classpath"/>
  268. </classpath>
  269. </javadoc>
  270. <javadoc sourcepath="${basedir}/src/main/java"
  271. destdir="${project.build.directory}/site/jdiff/xml"
  272. sourceFiles="${dev-support.relative.dir}/jdiff/Null.java"
  273. maxmemory="${jdiff.javadoc.maxmemory}">
  274. <doclet name="org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet"
  275. path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar:${project.build.directory}/xerces.jar">
  276. <param name="-oldapi" value="${project.name} ${jdiff.stable.api}"/>
  277. <param name="-newapi" value="${project.name} ${project.version}"/>
  278. <param name="-oldapidir" value="${basedir}/${dev-support.relative.dir}/jdiff"/>
  279. <param name="-newapidir" value="${project.build.directory}/site/jdiff/xml"/>
  280. <param name="-javadocold"
  281. value="http://hadoop.apache.org/docs/r${jdiff.stable.api}/api/"/>
  282. <param name="-javadocnew" value="${project.build.directory}/site/api/"/>
  283. <param name="-stats"/>
  284. <param name="${jdiff.stability}"/>
  285. </doclet>
  286. <classpath>
  287. <path refid="maven.compile.classpath"/>
  288. </classpath>
  289. </javadoc>
  290. <property name="compile_classpath" refid="maven.compile.classpath"/>
  291. </target>
  292. </configuration>
  293. </execution>
  294. </executions>
  295. </plugin>
  296. </plugins>
  297. </build>
  298. </profile>
  299. </profiles>
  300. <modules>
  301. <module>hadoop-mapreduce-client-core</module>
  302. <module>hadoop-mapreduce-client-common</module>
  303. <module>hadoop-mapreduce-client-shuffle</module>
  304. <module>hadoop-mapreduce-client-app</module>
  305. <module>hadoop-mapreduce-client-jobclient</module>
  306. <module>hadoop-mapreduce-client-hs</module>
  307. <module>hadoop-mapreduce-client-hs-plugins</module>
  308. </modules>
  309. </project>