pom.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. <parent>
  18. <artifactId>hadoop-mapreduce-client</artifactId>
  19. <groupId>org.apache.hadoop</groupId>
  20. <version>3.5.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  24. <version>3.5.0-SNAPSHOT</version>
  25. <name>Apache Hadoop MapReduce JobClient</name>
  26. <properties>
  27. <fork.mode>always</fork.mode>
  28. <!-- Needed for generating FindBugs warnings using parent pom -->
  29. <mr.basedir>${project.parent.basedir}/../</mr.basedir>
  30. <should.run.jdiff>true</should.run.jdiff>
  31. <dev-support.relative.dir>../../dev-support</dev-support.relative.dir>
  32. </properties>
  33. <dependencies>
  34. <dependency>
  35. <groupId>org.apache.hadoop</groupId>
  36. <artifactId>hadoop-mapreduce-client-common</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.hadoop</groupId>
  40. <artifactId>hadoop-mapreduce-client-app</artifactId>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.hadoop</groupId>
  45. <artifactId>hadoop-mapreduce-client-app</artifactId>
  46. <type>test-jar</type>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.hadoop</groupId>
  51. <artifactId>hadoop-mapreduce-client-hs</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.hadoop</groupId>
  56. <artifactId>hadoop-yarn-common</artifactId>
  57. <type>test-jar</type>
  58. <scope>test</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.apache.hadoop</groupId>
  62. <artifactId>hadoop-yarn-server-nodemanager</artifactId>
  63. <scope>test</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.hadoop</groupId>
  67. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  68. <scope>test</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.hadoop</groupId>
  72. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  73. <type>test-jar</type>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.hadoop</groupId>
  78. <artifactId>hadoop-yarn-server-common</artifactId>
  79. <scope>test</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.hadoop</groupId>
  83. <artifactId>hadoop-yarn-server-tests</artifactId>
  84. <type>test-jar</type>
  85. <scope>test</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.hadoop</groupId>
  89. <artifactId>hadoop-hdfs</artifactId>
  90. <scope>test</scope>
  91. <type>test-jar</type>
  92. <exclusions>
  93. <exclusion>
  94. <groupId>org.ow2.asm</groupId>
  95. <artifactId>asm-commons</artifactId>
  96. </exclusion>
  97. </exclusions>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.hadoop</groupId>
  101. <artifactId>hadoop-yarn-server-timelineservice</artifactId>
  102. <scope>test</scope>
  103. <type>test-jar</type>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.hsqldb</groupId>
  107. <artifactId>hsqldb</artifactId>
  108. <scope>test</scope>
  109. <classifier>jdk8</classifier>
  110. </dependency>
  111. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  112. <dependency>
  113. <groupId>org.bouncycastle</groupId>
  114. <artifactId>bcprov-jdk15on</artifactId>
  115. <scope>test</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.bouncycastle</groupId>
  119. <artifactId>bcpkix-jdk15on</artifactId>
  120. <scope>test</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.assertj</groupId>
  124. <artifactId>assertj-core</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. </dependencies>
  128. <profiles>
  129. <profile>
  130. <id>clover</id>
  131. <activation>
  132. <activeByDefault>false</activeByDefault>
  133. <property>
  134. <name>clover</name>
  135. </property>
  136. </activation>
  137. <dependencies>
  138. <dependency>
  139. <groupId>com.cenqua.clover</groupId>
  140. <artifactId>clover</artifactId>
  141. </dependency>
  142. </dependencies>
  143. </profile>
  144. </profiles>
  145. <build>
  146. <plugins>
  147. <plugin>
  148. <artifactId>maven-jar-plugin</artifactId>
  149. <executions>
  150. <execution>
  151. <goals>
  152. <goal>test-jar</goal>
  153. </goals>
  154. <configuration>
  155. <excludes>
  156. <exclude>**/hdfs-site.xml</exclude>
  157. </excludes>
  158. <archive>
  159. <manifest>
  160. <mainClass>org.apache.hadoop.test.MapredTestDriver</mainClass>
  161. </manifest>
  162. </archive>
  163. </configuration>
  164. <phase>test-compile</phase>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-surefire-plugin</artifactId>
  171. <configuration>
  172. <environmentVariables>
  173. <JAVA_HOME>${java.home}</JAVA_HOME>
  174. </environmentVariables>
  175. <additionalClasspathElements>
  176. <!-- workaround for JobConf#setJarByClass -->
  177. <additionalClasspathElement>${project.build.directory}/${project.artifactId}-${project.version}-tests.jar</additionalClasspathElement>
  178. </additionalClasspathElements>
  179. </configuration>
  180. </plugin>
  181. <plugin>
  182. <groupId>org.apache.rat</groupId>
  183. <artifactId>apache-rat-plugin</artifactId>
  184. <configuration>
  185. <excludes>
  186. <exclude>src/test/java/org/apache/hadoop/cli/data60bytes</exclude>
  187. <exclude>src/test/resources/job_1329348432655_0001-10.jhist</exclude>
  188. <exclude>**/jobTokenPassword</exclude>
  189. </excludes>
  190. </configuration>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. </project>