pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. https://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-dist</artifactId>
  21. <version>3.5.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs-client</artifactId>
  25. <version>3.5.0-SNAPSHOT</version>
  26. <description>Apache Hadoop HDFS Client</description>
  27. <name>Apache Hadoop HDFS Client</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <hadoop.component>hdfs</hadoop.component>
  31. </properties>
  32. <dependencies>
  33. <dependency>
  34. <groupId>org.apache.hadoop</groupId>
  35. <artifactId>hadoop-common</artifactId>
  36. <scope>provided</scope>
  37. <exclusions>
  38. <exclusion>
  39. <groupId>log4j</groupId>
  40. <artifactId>log4j</artifactId>
  41. </exclusion>
  42. <exclusion>
  43. <groupId>org.slf4j</groupId>
  44. <artifactId>slf4j-ext</artifactId>
  45. </exclusion>
  46. </exclusions>
  47. </dependency>
  48. <dependency>
  49. <groupId>junit</groupId>
  50. <artifactId>junit</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.mockito</groupId>
  55. <artifactId>mockito-core</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>io.netty</groupId>
  60. <artifactId>netty-all</artifactId>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.mock-server</groupId>
  65. <artifactId>mockserver-netty</artifactId>
  66. <scope>test</scope>
  67. <exclusions>
  68. <exclusion>
  69. <groupId>io.netty</groupId>
  70. <artifactId>netty-buffer</artifactId>
  71. </exclusion>
  72. <exclusion>
  73. <groupId>io.netty</groupId>
  74. <artifactId>netty-codec</artifactId>
  75. </exclusion>
  76. <exclusion>
  77. <groupId>io.netty</groupId>
  78. <artifactId>netty-codec-http</artifactId>
  79. </exclusion>
  80. <exclusion>
  81. <groupId>io.netty</groupId>
  82. <artifactId>netty-common</artifactId>
  83. </exclusion>
  84. <exclusion>
  85. <groupId>io.netty</groupId>
  86. <artifactId>netty-handler</artifactId>
  87. </exclusion>
  88. <exclusion>
  89. <groupId>io.netty</groupId>
  90. <artifactId>netty-transport</artifactId>
  91. </exclusion>
  92. <exclusion>
  93. <groupId>com.fasterxml.jackson.dataformat</groupId>
  94. <artifactId>jackson-dataformat-yaml</artifactId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.hadoop</groupId>
  100. <artifactId>hadoop-common</artifactId>
  101. <scope>test</scope>
  102. <type>test-jar</type>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.fasterxml.jackson.core</groupId>
  106. <artifactId>jackson-annotations</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.fasterxml.jackson.core</groupId>
  110. <artifactId>jackson-databind</artifactId>
  111. </dependency>
  112. </dependencies>
  113. <build>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-surefire-plugin</artifactId>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.apache.rat</groupId>
  121. <artifactId>apache-rat-plugin</artifactId>
  122. <configuration>
  123. <excludes>
  124. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  125. </excludes>
  126. </configuration>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.xolstice.maven.plugins</groupId>
  130. <artifactId>protobuf-maven-plugin</artifactId>
  131. <executions>
  132. <execution>
  133. <id>src-compile-protoc</id>
  134. <configuration>
  135. <skip>false</skip>
  136. <additionalProtoPathElements>
  137. <additionalProtoPathElement>
  138. ${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto
  139. </additionalProtoPathElement>
  140. </additionalProtoPathElements>
  141. </configuration>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. <plugin>
  146. <groupId>com.google.code.maven-replacer-plugin</groupId>
  147. <artifactId>replacer</artifactId>
  148. <executions>
  149. <execution>
  150. <id>replace-generated-sources</id>
  151. <configuration>
  152. <skip>false</skip>
  153. </configuration>
  154. </execution>
  155. <execution>
  156. <id>replace-sources</id>
  157. <configuration>
  158. <skip>false</skip>
  159. </configuration>
  160. </execution>
  161. <execution>
  162. <id>replace-test-sources</id>
  163. <configuration>
  164. <skip>false</skip>
  165. </configuration>
  166. </execution>
  167. </executions>
  168. </plugin>
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-javadoc-plugin</artifactId>
  172. <configuration>
  173. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  174. </configuration>
  175. </plugin>
  176. </plugins>
  177. </build>
  178. </project>