pom.xml 5.9 KB

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