pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. <parent>
  18. <artifactId>hadoop-mapreduce-client</artifactId>
  19. <groupId>org.apache.hadoop</groupId>
  20. <version>3.3.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  24. <version>3.3.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. </dependency>
  93. <dependency>
  94. <groupId>org.apache.hadoop</groupId>
  95. <artifactId>hadoop-yarn-server-timelineservice</artifactId>
  96. <scope>test</scope>
  97. <type>test-jar</type>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.hsqldb</groupId>
  101. <artifactId>hsqldb</artifactId>
  102. <scope>test</scope>
  103. </dependency>
  104. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  105. <dependency>
  106. <groupId>org.bouncycastle</groupId>
  107. <artifactId>bcprov-jdk15on</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.bouncycastle</groupId>
  112. <artifactId>bcpkix-jdk15on</artifactId>
  113. <scope>test</scope>
  114. </dependency>
  115. </dependencies>
  116. <profiles>
  117. <profile>
  118. <id>clover</id>
  119. <activation>
  120. <activeByDefault>false</activeByDefault>
  121. <property>
  122. <name>clover</name>
  123. </property>
  124. </activation>
  125. <dependencies>
  126. <dependency>
  127. <groupId>com.cenqua.clover</groupId>
  128. <artifactId>clover</artifactId>
  129. </dependency>
  130. </dependencies>
  131. </profile>
  132. </profiles>
  133. <build>
  134. <plugins>
  135. <plugin>
  136. <artifactId>maven-jar-plugin</artifactId>
  137. <executions>
  138. <execution>
  139. <goals>
  140. <goal>test-jar</goal>
  141. </goals>
  142. <configuration>
  143. <excludes>
  144. <exclude>**/hdfs-site.xml</exclude>
  145. </excludes>
  146. <archive>
  147. <manifest>
  148. <mainClass>org.apache.hadoop.test.MapredTestDriver</mainClass>
  149. </manifest>
  150. </archive>
  151. </configuration>
  152. <phase>test-compile</phase>
  153. </execution>
  154. </executions>
  155. </plugin>
  156. <plugin>
  157. <groupId>org.apache.maven.plugins</groupId>
  158. <artifactId>maven-surefire-plugin</artifactId>
  159. <configuration>
  160. <environmentVariables>
  161. <JAVA_HOME>${java.home}</JAVA_HOME>
  162. </environmentVariables>
  163. <additionalClasspathElements>
  164. <!-- workaround for JobConf#setJarByClass -->
  165. <additionalClasspathElement>${project.build.directory}/${project.artifactId}-${project.version}-tests.jar</additionalClasspathElement>
  166. </additionalClasspathElements>
  167. </configuration>
  168. </plugin>
  169. <plugin>
  170. <groupId>org.apache.rat</groupId>
  171. <artifactId>apache-rat-plugin</artifactId>
  172. <configuration>
  173. <excludes>
  174. <exclude>src/test/java/org/apache/hadoop/cli/data60bytes</exclude>
  175. <exclude>src/test/resources/job_1329348432655_0001-10.jhist</exclude>
  176. </excludes>
  177. </configuration>
  178. </plugin>
  179. </plugins>
  180. </build>
  181. </project>