pom.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.apache.hadoop</groupId>
  20. <artifactId>hadoop-project</artifactId>
  21. <version>3.5.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-mapreduce-examples</artifactId>
  25. <version>3.5.0-SNAPSHOT</version>
  26. <description>Apache Hadoop MapReduce Examples</description>
  27. <name>Apache Hadoop MapReduce Examples</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <mr.examples.basedir>${basedir}</mr.examples.basedir>
  31. </properties>
  32. <dependencies>
  33. <dependency>
  34. <groupId>commons-cli</groupId>
  35. <artifactId>commons-cli</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.hadoop</groupId>
  39. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  40. <scope>provided</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.apache.hadoop</groupId>
  44. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  45. <scope>test</scope>
  46. <type>test-jar</type>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-common</artifactId>
  51. <scope>provided</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.hadoop</groupId>
  55. <artifactId>hadoop-common</artifactId>
  56. <scope>test</scope>
  57. <type>test-jar</type>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.hadoop</groupId>
  61. <artifactId>hadoop-hdfs-client</artifactId>
  62. <scope>runtime</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.apache.hadoop</groupId>
  66. <artifactId>hadoop-hdfs</artifactId>
  67. <scope>test</scope>
  68. <type>test-jar</type>
  69. <exclusions>
  70. <exclusion>
  71. <groupId>org.ow2.asm</groupId>
  72. <artifactId>asm-commons</artifactId>
  73. </exclusion>
  74. </exclusions>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.hadoop</groupId>
  78. <artifactId>hadoop-yarn-server-tests</artifactId>
  79. <scope>test</scope>
  80. <type>test-jar</type>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.hadoop</groupId>
  84. <artifactId>hadoop-mapreduce-client-app</artifactId>
  85. <scope>provided</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.hadoop</groupId>
  89. <artifactId>hadoop-mapreduce-client-app</artifactId>
  90. <type>test-jar</type>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  95. <artifactId>jersey-test-framework-grizzly2</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.hadoop</groupId>
  100. <artifactId>hadoop-mapreduce-client-hs</artifactId>
  101. <scope>test</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.hsqldb</groupId>
  105. <artifactId>hsqldb</artifactId>
  106. <scope>provided</scope>
  107. <classifier>jdk8</classifier>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.apache.hadoop.thirdparty</groupId>
  111. <artifactId>hadoop-shaded-guava</artifactId>
  112. <scope>provided</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.slf4j</groupId>
  116. <artifactId>slf4j-api</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.assertj</groupId>
  120. <artifactId>assertj-core</artifactId>
  121. <scope>test</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.junit.jupiter</groupId>
  125. <artifactId>junit-jupiter-api</artifactId>
  126. <scope>test</scope>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.junit.jupiter</groupId>
  130. <artifactId>junit-jupiter-engine</artifactId>
  131. <scope>test</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.junit.platform</groupId>
  135. <artifactId>junit-platform-launcher</artifactId>
  136. <scope>test</scope>
  137. </dependency>
  138. </dependencies>
  139. <build>
  140. <plugins>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-jar-plugin</artifactId>
  144. <configuration>
  145. <archive>
  146. <manifest>
  147. <mainClass>org.apache.hadoop.examples.ExampleDriver</mainClass>
  148. </manifest>
  149. </archive>
  150. </configuration>
  151. </plugin>
  152. <plugin>
  153. <groupId>com.github.spotbugs</groupId>
  154. <artifactId>spotbugs-maven-plugin</artifactId>
  155. <configuration>
  156. <xmlOutput>true</xmlOutput>
  157. <excludeFilterFile>${mr.examples.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  158. <effort>Max</effort>
  159. </configuration>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.rat</groupId>
  163. <artifactId>apache-rat-plugin</artifactId>
  164. <configuration>
  165. <excludes>
  166. <exclude>src/main/java/org/apache/hadoop/examples/dancing/puzzle1.dta</exclude>
  167. </excludes>
  168. </configuration>
  169. </plugin>
  170. </plugins>
  171. </build>
  172. </project>