pom.xml 5.9 KB

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