pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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.1.2-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>2.1.2-SNAPSHOT</version>
  26. <name>hadoop-mapreduce-client-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-server-nodemanager</artifactId>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.hadoop</groupId>
  64. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.hadoop</groupId>
  69. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  70. <type>test-jar</type>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.hadoop</groupId>
  75. <artifactId>hadoop-yarn-server-common</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.hadoop</groupId>
  80. <artifactId>hadoop-yarn-server-tests</artifactId>
  81. <type>test-jar</type>
  82. <scope>test</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.hadoop</groupId>
  86. <artifactId>hadoop-hdfs</artifactId>
  87. <scope>test</scope>
  88. <type>test-jar</type>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.hsqldb</groupId>
  92. <artifactId>hsqldb</artifactId>
  93. <scope>test</scope>
  94. </dependency>
  95. </dependencies>
  96. <profiles>
  97. <profile>
  98. <id>clover</id>
  99. <activation>
  100. <activeByDefault>false</activeByDefault>
  101. <property>
  102. <name>clover</name>
  103. </property>
  104. </activation>
  105. <dependencies>
  106. <dependency>
  107. <groupId>com.cenqua.clover</groupId>
  108. <artifactId>clover</artifactId>
  109. </dependency>
  110. </dependencies>
  111. </profile>
  112. </profiles>
  113. <build>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.apache.rat</groupId>
  117. <artifactId>apache-rat-plugin</artifactId>
  118. <configuration>
  119. <excludes>
  120. <exclude>src/test/java/org/apache/hadoop/cli/data60bytes</exclude>
  121. <exclude>src/test/resources/job_1329348432655_0001-10.jhist</exclude>
  122. </excludes>
  123. </configuration>
  124. </plugin>
  125. <plugin>
  126. <artifactId>maven-jar-plugin</artifactId>
  127. <executions>
  128. <execution>
  129. <goals>
  130. <goal>test-jar</goal>
  131. </goals>
  132. <phase>test-compile</phase>
  133. </execution>
  134. </executions>
  135. <configuration>
  136. <archive>
  137. <manifest>
  138. <mainClass>org.apache.hadoop.test.MapredTestDriver</mainClass>
  139. </manifest>
  140. </archive>
  141. </configuration>
  142. </plugin>
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-surefire-plugin</artifactId>
  146. <configuration>
  147. <environmentVariables>
  148. <JAVA_HOME>${java.home}</JAVA_HOME>
  149. </environmentVariables>
  150. <additionalClasspathElements>
  151. <!-- workaround for JobConf#setJarByClass -->
  152. <additionalClasspathElement>${project.build.directory}/${project.artifactId}-${project.version}-tests.jar</additionalClasspathElement>
  153. </additionalClasspathElements>
  154. </configuration>
  155. </plugin>
  156. </plugins>
  157. </build>
  158. </project>