pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. https://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.4.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-mapreduce-client-core</artifactId>
  24. <version>3.4.0-SNAPSHOT</version>
  25. <name>Apache Hadoop MapReduce Core</name>
  26. <properties>
  27. <!-- Needed for generating FindBugs warnings using parent pom -->
  28. <mr.basedir>${project.parent.basedir}/..</mr.basedir>
  29. <should.run.jdiff>true</should.run.jdiff>
  30. <dev-support.relative.dir>../../dev-support</dev-support.relative.dir>
  31. </properties>
  32. <dependencies>
  33. <dependency>
  34. <groupId>org.apache.hadoop</groupId>
  35. <artifactId>hadoop-yarn-client</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.hadoop</groupId>
  39. <artifactId>hadoop-yarn-common</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.hadoop</groupId>
  43. <artifactId>hadoop-hdfs-client</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.hadoop</groupId>
  47. <artifactId>hadoop-hdfs</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.hadoop</groupId>
  52. <artifactId>hadoop-hdfs</artifactId>
  53. <type>test-jar</type>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.skyscreamer</groupId>
  58. <artifactId>jsonassert</artifactId>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.fasterxml.jackson.core</groupId>
  63. <artifactId>jackson-databind</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.assertj</groupId>
  67. <artifactId>assertj-core</artifactId>
  68. <scope>test</scope>
  69. </dependency>
  70. </dependencies>
  71. <build>
  72. <plugins>
  73. <plugin>
  74. <artifactId>maven-jar-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <goals>
  78. <goal>test-jar</goal>
  79. </goals>
  80. <configuration>
  81. <excludes>
  82. <exclude>**/mapred-queues.xml</exclude>
  83. </excludes>
  84. </configuration>
  85. <phase>test-compile</phase>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-javadoc-plugin</artifactId>
  92. <configuration>
  93. <sourcepath>target/generated-sources/avro/</sourcepath>
  94. <excludePackageNames>org.apache.hadoop.mapreduce.jobhistory</excludePackageNames>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-surefire-plugin</artifactId>
  100. <configuration>
  101. <systemPropertyVariables>
  102. <log4j.configuration>file:///${project.basedir}/src/test/resources/log4j.properties</log4j.configuration>
  103. </systemPropertyVariables>
  104. </configuration>
  105. </plugin>
  106. <plugin>
  107. <groupId>org.apache.avro</groupId>
  108. <artifactId>avro-maven-plugin</artifactId>
  109. <executions>
  110. <execution>
  111. <phase>generate-sources</phase>
  112. <goals>
  113. <goal>protocol</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-antrun-plugin</artifactId>
  121. <executions>
  122. <execution>
  123. <phase>pre-site</phase>
  124. <goals>
  125. <goal>run</goal>
  126. </goals>
  127. <configuration>
  128. <tasks>
  129. <copy file="src/main/resources/mapred-default.xml" todir="src/site/resources"/>
  130. <copy file="../../../hadoop-common-project/hadoop-common/src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  131. </tasks>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.rat</groupId>
  138. <artifactId>apache-rat-plugin</artifactId>
  139. <configuration>
  140. <excludes>
  141. <exclude>.gitattributes</exclude>
  142. <exclude>src/test/resources/recordSpanningMultipleSplits.txt</exclude>
  143. <exclude>src/test/resources/testBOM.txt</exclude>
  144. <exclude>src/test/resources/TestSafeguardSplittingUnsplittableFiles.txt.gz</exclude>
  145. </excludes>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <artifactId>maven-clean-plugin</artifactId>
  150. <configuration>
  151. <filesets>
  152. <fileset>
  153. <directory>src/site/resources</directory>
  154. <includes>
  155. <include>configuration.xsl</include>
  156. <include>mapred-default.xml</include>
  157. </includes>
  158. <followSymlinks>false</followSymlinks>
  159. </fileset>
  160. </filesets>
  161. </configuration>
  162. </plugin>
  163. </plugins>
  164. </build>
  165. </project>