pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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.5.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-mapreduce-client-core</artifactId>
  24. <version>3.5.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. <dependency>
  72. <groupId>org.junit.jupiter</groupId>
  73. <artifactId>junit-jupiter-api</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.junit.jupiter</groupId>
  78. <artifactId>junit-jupiter-engine</artifactId>
  79. <scope>test</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.junit.jupiter</groupId>
  83. <artifactId>junit-jupiter-params</artifactId>
  84. <scope>test</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.junit.platform</groupId>
  88. <artifactId>junit-platform-launcher</artifactId>
  89. <scope>test</scope>
  90. </dependency>
  91. </dependencies>
  92. <build>
  93. <plugins>
  94. <plugin>
  95. <artifactId>maven-jar-plugin</artifactId>
  96. <executions>
  97. <execution>
  98. <goals>
  99. <goal>test-jar</goal>
  100. </goals>
  101. <configuration>
  102. <excludes>
  103. <exclude>**/mapred-queues.xml</exclude>
  104. </excludes>
  105. </configuration>
  106. <phase>test-compile</phase>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-javadoc-plugin</artifactId>
  113. <configuration>
  114. <sourcepath>target/generated-sources/avro/</sourcepath>
  115. <excludePackageNames>org.apache.hadoop.mapreduce.jobhistory</excludePackageNames>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-surefire-plugin</artifactId>
  121. <configuration>
  122. <systemPropertyVariables>
  123. <log4j.configuration>file:///${project.basedir}/src/test/resources/log4j.properties</log4j.configuration>
  124. <!-- project directory (target/) on a maven build. -->
  125. <project.build.directory>${project.build.directory}</project.build.directory>
  126. <!-- this property is used in hadoop-azure with separate paths for parallel runs -->
  127. <test.build.dir>${project.build.directory}</test.build.dir>
  128. </systemPropertyVariables>
  129. </configuration>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.avro</groupId>
  133. <artifactId>avro-maven-plugin</artifactId>
  134. <executions>
  135. <execution>
  136. <phase>generate-sources</phase>
  137. <goals>
  138. <goal>protocol</goal>
  139. </goals>
  140. </execution>
  141. </executions>
  142. </plugin>
  143. <plugin>
  144. <groupId>org.apache.maven.plugins</groupId>
  145. <artifactId>maven-antrun-plugin</artifactId>
  146. <executions>
  147. <execution>
  148. <phase>pre-site</phase>
  149. <goals>
  150. <goal>run</goal>
  151. </goals>
  152. <configuration>
  153. <target>
  154. <copy file="src/main/resources/mapred-default.xml" todir="src/site/resources"/>
  155. <copy file="../../../hadoop-common-project/hadoop-common/src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  156. </target>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.rat</groupId>
  163. <artifactId>apache-rat-plugin</artifactId>
  164. <configuration>
  165. <excludes>
  166. <exclude>.gitattributes</exclude>
  167. <exclude>src/test/resources/recordSpanningMultipleSplits.txt</exclude>
  168. <exclude>src/test/resources/testBOM.txt</exclude>
  169. <exclude>src/test/resources/TestSafeguardSplittingUnsplittableFiles.txt.gz</exclude>
  170. </excludes>
  171. </configuration>
  172. </plugin>
  173. <plugin>
  174. <artifactId>maven-clean-plugin</artifactId>
  175. <configuration>
  176. <filesets>
  177. <fileset>
  178. <directory>src/site/resources</directory>
  179. <includes>
  180. <include>configuration.xsl</include>
  181. <include>mapred-default.xml</include>
  182. </includes>
  183. <followSymlinks>false</followSymlinks>
  184. </fileset>
  185. </filesets>
  186. </configuration>
  187. </plugin>
  188. </plugins>
  189. </build>
  190. </project>