pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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-jdk18on</artifactId>
  115. <scope>test</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.bouncycastle</groupId>
  119. <artifactId>bcpkix-jdk18on</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. <dependency>
  128. <groupId>org.junit.jupiter</groupId>
  129. <artifactId>junit-jupiter-api</artifactId>
  130. <scope>test</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.junit.jupiter</groupId>
  134. <artifactId>junit-jupiter-engine</artifactId>
  135. <scope>test</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.junit.jupiter</groupId>
  139. <artifactId>junit-jupiter-params</artifactId>
  140. <scope>test</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.junit.platform</groupId>
  144. <artifactId>junit-platform-launcher</artifactId>
  145. <scope>test</scope>
  146. </dependency>
  147. </dependencies>
  148. <profiles>
  149. <profile>
  150. <id>clover</id>
  151. <activation>
  152. <activeByDefault>false</activeByDefault>
  153. <property>
  154. <name>clover</name>
  155. </property>
  156. </activation>
  157. <dependencies>
  158. <dependency>
  159. <groupId>com.cenqua.clover</groupId>
  160. <artifactId>clover</artifactId>
  161. </dependency>
  162. </dependencies>
  163. </profile>
  164. </profiles>
  165. <build>
  166. <plugins>
  167. <plugin>
  168. <artifactId>maven-jar-plugin</artifactId>
  169. <executions>
  170. <execution>
  171. <goals>
  172. <goal>test-jar</goal>
  173. </goals>
  174. <configuration>
  175. <excludes>
  176. <exclude>**/hdfs-site.xml</exclude>
  177. </excludes>
  178. <archive>
  179. <manifest>
  180. <mainClass>org.apache.hadoop.test.MapredTestDriver</mainClass>
  181. </manifest>
  182. </archive>
  183. </configuration>
  184. <phase>test-compile</phase>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-surefire-plugin</artifactId>
  191. <configuration>
  192. <environmentVariables>
  193. <JAVA_HOME>${java.home}</JAVA_HOME>
  194. </environmentVariables>
  195. <additionalClasspathElements>
  196. <!-- workaround for JobConf#setJarByClass -->
  197. <additionalClasspathElement>${project.build.directory}/${project.artifactId}-${project.version}-tests.jar</additionalClasspathElement>
  198. </additionalClasspathElements>
  199. </configuration>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.apache.rat</groupId>
  203. <artifactId>apache-rat-plugin</artifactId>
  204. <configuration>
  205. <excludes>
  206. <exclude>src/test/java/org/apache/hadoop/cli/data60bytes</exclude>
  207. <exclude>src/test/resources/job_1329348432655_0001-10.jhist</exclude>
  208. <exclude>**/jobTokenPassword</exclude>
  209. </excludes>
  210. </configuration>
  211. </plugin>
  212. </plugins>
  213. </build>
  214. </project>