pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. https://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.3.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-mapreduce-client-core</artifactId>
  24. <version>3.3.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. </dependencies>
  66. <build>
  67. <plugins>
  68. <plugin>
  69. <artifactId>maven-jar-plugin</artifactId>
  70. <executions>
  71. <execution>
  72. <goals>
  73. <goal>test-jar</goal>
  74. </goals>
  75. <configuration>
  76. <excludes>
  77. <exclude>**/mapred-queues.xml</exclude>
  78. </excludes>
  79. </configuration>
  80. <phase>test-compile</phase>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-javadoc-plugin</artifactId>
  87. <configuration>
  88. <sourcepath>target/generated-sources/avro/</sourcepath>
  89. <excludePackageNames>org.apache.hadoop.mapreduce.jobhistory</excludePackageNames>
  90. </configuration>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-surefire-plugin</artifactId>
  95. <configuration>
  96. <systemPropertyVariables>
  97. <log4j.configuration>file:///${project.basedir}/src/test/resources/log4j.properties</log4j.configuration>
  98. </systemPropertyVariables>
  99. </configuration>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.apache.avro</groupId>
  103. <artifactId>avro-maven-plugin</artifactId>
  104. <executions>
  105. <execution>
  106. <phase>generate-sources</phase>
  107. <goals>
  108. <goal>protocol</goal>
  109. </goals>
  110. </execution>
  111. </executions>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-antrun-plugin</artifactId>
  116. <executions>
  117. <execution>
  118. <phase>pre-site</phase>
  119. <goals>
  120. <goal>run</goal>
  121. </goals>
  122. <configuration>
  123. <tasks>
  124. <copy file="src/main/resources/mapred-default.xml" todir="src/site/resources"/>
  125. <copy file="../../../hadoop-common-project/hadoop-common/src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  126. </tasks>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.rat</groupId>
  133. <artifactId>apache-rat-plugin</artifactId>
  134. <configuration>
  135. <excludes>
  136. <exclude>.gitattributes</exclude>
  137. <exclude>src/test/resources/recordSpanningMultipleSplits.txt</exclude>
  138. <exclude>src/test/resources/testBOM.txt</exclude>
  139. <exclude>src/test/resources/TestSafeguardSplittingUnsplittableFiles.txt.gz</exclude>
  140. </excludes>
  141. </configuration>
  142. </plugin>
  143. <plugin>
  144. <artifactId>maven-clean-plugin</artifactId>
  145. <configuration>
  146. <filesets>
  147. <fileset>
  148. <directory>src/site/resources</directory>
  149. <includes>
  150. <include>configuration.xsl</include>
  151. <include>mapred-default.xml</include>
  152. </includes>
  153. <followSymlinks>false</followSymlinks>
  154. </fileset>
  155. </filesets>
  156. </configuration>
  157. </plugin>
  158. </plugins>
  159. </build>
  160. </project>