pom.xml 6.1 KB

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