pom.xml 6.1 KB

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