pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. <exclusions>
  45. <exclusion>
  46. <groupId>org.json</groupId>
  47. <artifactId>json</artifactId>
  48. </exclusion>
  49. </exclusions>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-hdfs</artifactId>
  54. <type>test-jar</type>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.skyscreamer</groupId>
  59. <artifactId>jsonassert</artifactId>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.fasterxml.jackson.core</groupId>
  64. <artifactId>jackson-databind</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.assertj</groupId>
  68. <artifactId>assertj-core</artifactId>
  69. <scope>test</scope>
  70. </dependency>
  71. </dependencies>
  72. <build>
  73. <plugins>
  74. <plugin>
  75. <artifactId>maven-jar-plugin</artifactId>
  76. <executions>
  77. <execution>
  78. <goals>
  79. <goal>test-jar</goal>
  80. </goals>
  81. <configuration>
  82. <excludes>
  83. <exclude>**/mapred-queues.xml</exclude>
  84. </excludes>
  85. </configuration>
  86. <phase>test-compile</phase>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-javadoc-plugin</artifactId>
  93. <configuration>
  94. <sourcepath>target/generated-sources/avro/</sourcepath>
  95. <excludePackageNames>org.apache.hadoop.mapreduce.jobhistory</excludePackageNames>
  96. </configuration>
  97. </plugin>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-surefire-plugin</artifactId>
  101. <configuration>
  102. <systemPropertyVariables>
  103. <log4j.configuration>file:///${project.basedir}/src/test/resources/log4j.properties</log4j.configuration>
  104. </systemPropertyVariables>
  105. </configuration>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.apache.avro</groupId>
  109. <artifactId>avro-maven-plugin</artifactId>
  110. <executions>
  111. <execution>
  112. <phase>generate-sources</phase>
  113. <goals>
  114. <goal>protocol</goal>
  115. </goals>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-antrun-plugin</artifactId>
  122. <executions>
  123. <execution>
  124. <phase>pre-site</phase>
  125. <goals>
  126. <goal>run</goal>
  127. </goals>
  128. <configuration>
  129. <tasks>
  130. <copy file="src/main/resources/mapred-default.xml" todir="src/site/resources"/>
  131. <copy file="../../../hadoop-common-project/hadoop-common/src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  132. </tasks>
  133. </configuration>
  134. </execution>
  135. </executions>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.apache.rat</groupId>
  139. <artifactId>apache-rat-plugin</artifactId>
  140. <configuration>
  141. <excludes>
  142. <exclude>.gitattributes</exclude>
  143. <exclude>src/test/resources/recordSpanningMultipleSplits.txt</exclude>
  144. <exclude>src/test/resources/testBOM.txt</exclude>
  145. <exclude>src/test/resources/TestSafeguardSplittingUnsplittableFiles.txt.gz</exclude>
  146. </excludes>
  147. </configuration>
  148. </plugin>
  149. <plugin>
  150. <artifactId>maven-clean-plugin</artifactId>
  151. <configuration>
  152. <filesets>
  153. <fileset>
  154. <directory>src/site/resources</directory>
  155. <includes>
  156. <include>configuration.xsl</include>
  157. <include>mapred-default.xml</include>
  158. </includes>
  159. <followSymlinks>false</followSymlinks>
  160. </fileset>
  161. </filesets>
  162. </configuration>
  163. </plugin>
  164. </plugins>
  165. </build>
  166. </project>