pom.xml 5.9 KB

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