pom.xml 5.8 KB

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