pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. http://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.2.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs-client</artifactId>
  25. <version>3.2.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>com.squareup.okhttp</groupId>
  35. <artifactId>okhttp</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.hadoop</groupId>
  39. <artifactId>hadoop-common</artifactId>
  40. <scope>provided</scope>
  41. <exclusions>
  42. <exclusion>
  43. <groupId>commons-logging</groupId>
  44. <artifactId>commons-logging</artifactId>
  45. </exclusion>
  46. <exclusion>
  47. <groupId>log4j</groupId>
  48. <artifactId>log4j</artifactId>
  49. </exclusion>
  50. </exclusions>
  51. </dependency>
  52. <dependency>
  53. <groupId>junit</groupId>
  54. <artifactId>junit</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.mockito</groupId>
  59. <artifactId>mockito-all</artifactId>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.mock-server</groupId>
  64. <artifactId>mockserver-netty</artifactId>
  65. <scope>test</scope>
  66. <exclusions>
  67. <exclusion>
  68. <groupId>io.netty</groupId>
  69. <artifactId>netty-buffer</artifactId>
  70. </exclusion>
  71. <exclusion>
  72. <groupId>io.netty</groupId>
  73. <artifactId>netty-codec</artifactId>
  74. </exclusion>
  75. <exclusion>
  76. <groupId>io.netty</groupId>
  77. <artifactId>netty-codec-http</artifactId>
  78. </exclusion>
  79. <exclusion>
  80. <groupId>io.netty</groupId>
  81. <artifactId>netty-common</artifactId>
  82. </exclusion>
  83. <exclusion>
  84. <groupId>io.netty</groupId>
  85. <artifactId>netty-handler</artifactId>
  86. </exclusion>
  87. <exclusion>
  88. <groupId>io.netty</groupId>
  89. <artifactId>netty-transport</artifactId>
  90. </exclusion>
  91. </exclusions>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.hadoop</groupId>
  95. <artifactId>hadoop-common</artifactId>
  96. <scope>test</scope>
  97. <type>test-jar</type>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.fasterxml.jackson.core</groupId>
  101. <artifactId>jackson-annotations</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>io.netty</groupId>
  105. <artifactId>netty-all</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.fasterxml.jackson.core</groupId>
  109. <artifactId>jackson-databind</artifactId>
  110. </dependency>
  111. <dependency>
  112. <artifactId>ratis-server</artifactId>
  113. <groupId>org.apache.ratis</groupId>
  114. <exclusions>
  115. <exclusion>
  116. <groupId>org.slf4j</groupId>
  117. <artifactId>slf4j-log4j12</artifactId>
  118. </exclusion>
  119. </exclusions>
  120. </dependency>
  121. <dependency>
  122. <artifactId>ratis-netty</artifactId>
  123. <groupId>org.apache.ratis</groupId>
  124. </dependency>
  125. <dependency>
  126. <artifactId>ratis-grpc</artifactId>
  127. <groupId>org.apache.ratis</groupId>
  128. </dependency>
  129. </dependencies>
  130. <build>
  131. <plugins>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-surefire-plugin</artifactId>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.rat</groupId>
  138. <artifactId>apache-rat-plugin</artifactId>
  139. <configuration>
  140. <excludes>
  141. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  142. </excludes>
  143. </configuration>
  144. </plugin>
  145. <plugin>
  146. <groupId>org.apache.hadoop</groupId>
  147. <artifactId>hadoop-maven-plugins</artifactId>
  148. <executions>
  149. <execution>
  150. <id>compile-protoc</id>
  151. <goals>
  152. <goal>protoc</goal>
  153. </goals>
  154. <configuration>
  155. <protocVersion>${protobuf.version}</protocVersion>
  156. <protocCommand>${protoc.path}</protocCommand>
  157. <imports>
  158. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  159. <param>${basedir}/src/main/proto</param>
  160. </imports>
  161. <source>
  162. <directory>${basedir}/src/main/proto</directory>
  163. <includes>
  164. <include>ClientDatanodeProtocol.proto</include>
  165. <include>ClientNamenodeProtocol.proto</include>
  166. <include>acl.proto</include>
  167. <include>xattr.proto</include>
  168. <include>datatransfer.proto</include>
  169. <include>hdfs.proto</include>
  170. <include>encryption.proto</include>
  171. <include>inotify.proto</include>
  172. <include>erasurecoding.proto</include>
  173. <include>ReconfigurationProtocol.proto</include>
  174. <include>StorageContainerLocationProtocol.proto</include>
  175. <include>DatanodeContainerProtocol.proto</include>
  176. <include>Ozone.proto</include>
  177. <include>KeySpaceManagerProtocol.proto</include>
  178. <include>ScmBlockLocationProtocol.proto</include>
  179. </includes>
  180. </source>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.apache.maven.plugins</groupId>
  187. <artifactId>maven-javadoc-plugin</artifactId>
  188. <configuration>
  189. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  190. </configuration>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. </project>