pom.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. http://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>2.7.8-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-mapreduce-examples</artifactId>
  26. <version>2.7.8-SNAPSHOT</version>
  27. <description>Apache Hadoop MapReduce Examples</description>
  28. <name>Apache Hadoop MapReduce Examples</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <mr.examples.basedir>${basedir}</mr.examples.basedir>
  32. </properties>
  33. <dependencies>
  34. <dependency>
  35. <groupId>commons-cli</groupId>
  36. <artifactId>commons-cli</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>commons-logging</groupId>
  40. <artifactId>commons-logging</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.apache.hadoop</groupId>
  44. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  45. <version>${project.version}</version>
  46. <scope>provided</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  51. <scope>test</scope>
  52. <type>test-jar</type>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.hadoop</groupId>
  56. <artifactId>hadoop-common</artifactId>
  57. <scope>provided</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.hadoop</groupId>
  61. <artifactId>hadoop-common</artifactId>
  62. <scope>test</scope>
  63. <type>test-jar</type>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.hadoop</groupId>
  67. <artifactId>hadoop-hdfs</artifactId>
  68. <scope>runtime</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.hadoop</groupId>
  72. <artifactId>hadoop-hdfs</artifactId>
  73. <scope>test</scope>
  74. <type>test-jar</type>
  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. </dependency>
  108. <dependency>
  109. <groupId>com.google.guava</groupId>
  110. <artifactId>guava</artifactId>
  111. <scope>provided</scope>
  112. </dependency>
  113. </dependencies>
  114. <build>
  115. <plugins>
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-jar-plugin</artifactId>
  119. <configuration>
  120. <archive>
  121. <manifest>
  122. <mainClass>org.apache.hadoop.examples.ExampleDriver</mainClass>
  123. </manifest>
  124. </archive>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.codehaus.mojo</groupId>
  129. <artifactId>findbugs-maven-plugin</artifactId>
  130. <configuration>
  131. <findbugsXmlOutput>true</findbugsXmlOutput>
  132. <xmlOutput>true</xmlOutput>
  133. <excludeFilterFile>${mr.examples.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  134. <effort>Max</effort>
  135. </configuration>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.apache.rat</groupId>
  139. <artifactId>apache-rat-plugin</artifactId>
  140. <configuration>
  141. <excludes>
  142. <exclude>src/main/java/org/apache/hadoop/examples/dancing/puzzle1.dta</exclude>
  143. </excludes>
  144. </configuration>
  145. </plugin>
  146. </plugins>
  147. </build>
  148. </project>