pom.xml.versionsBackup 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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.1.3-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-hdfs-client</artifactId>
  25. <version>3.1.3-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>io.netty</groupId>
  64. <artifactId>netty-all</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.mock-server</groupId>
  69. <artifactId>mockserver-netty</artifactId>
  70. <scope>test</scope>
  71. <exclusions>
  72. <exclusion>
  73. <groupId>io.netty</groupId>
  74. <artifactId>netty-buffer</artifactId>
  75. </exclusion>
  76. <exclusion>
  77. <groupId>io.netty</groupId>
  78. <artifactId>netty-codec</artifactId>
  79. </exclusion>
  80. <exclusion>
  81. <groupId>io.netty</groupId>
  82. <artifactId>netty-codec-http</artifactId>
  83. </exclusion>
  84. <exclusion>
  85. <groupId>io.netty</groupId>
  86. <artifactId>netty-common</artifactId>
  87. </exclusion>
  88. <exclusion>
  89. <groupId>io.netty</groupId>
  90. <artifactId>netty-handler</artifactId>
  91. </exclusion>
  92. <exclusion>
  93. <groupId>io.netty</groupId>
  94. <artifactId>netty-transport</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.apache.hadoop</groupId>
  130. <artifactId>hadoop-maven-plugins</artifactId>
  131. <executions>
  132. <execution>
  133. <id>compile-protoc</id>
  134. <goals>
  135. <goal>protoc</goal>
  136. </goals>
  137. <configuration>
  138. <protocVersion>${protobuf.version}</protocVersion>
  139. <protocCommand>${protoc.path}</protocCommand>
  140. <imports>
  141. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  142. <param>${basedir}/src/main/proto</param>
  143. </imports>
  144. <source>
  145. <directory>${basedir}/src/main/proto</directory>
  146. <includes>
  147. <include>ClientDatanodeProtocol.proto</include>
  148. <include>ClientNamenodeProtocol.proto</include>
  149. <include>acl.proto</include>
  150. <include>xattr.proto</include>
  151. <include>datatransfer.proto</include>
  152. <include>hdfs.proto</include>
  153. <include>encryption.proto</include>
  154. <include>inotify.proto</include>
  155. <include>erasurecoding.proto</include>
  156. <include>ReconfigurationProtocol.proto</include>
  157. </includes>
  158. </source>
  159. </configuration>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. <plugin>
  164. <groupId>org.apache.maven.plugins</groupId>
  165. <artifactId>maven-javadoc-plugin</artifactId>
  166. <configuration>
  167. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  168. </configuration>
  169. </plugin>
  170. </plugins>
  171. </build>
  172. </project>