pom.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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>2.8.1</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-hdfs-client</artifactId>
  26. <version>2.8.1</version>
  27. <description>Apache Hadoop HDFS Client</description>
  28. <name>Apache Hadoop HDFS Client</name>
  29. <packaging>jar</packaging>
  30. <properties>
  31. <hadoop.component>hdfs</hadoop.component>
  32. </properties>
  33. <dependencies>
  34. <dependency>
  35. <groupId>com.squareup.okhttp</groupId>
  36. <artifactId>okhttp</artifactId>
  37. <version>2.4.0</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.hadoop</groupId>
  41. <artifactId>hadoop-common</artifactId>
  42. <scope>provided</scope>
  43. <exclusions>
  44. <exclusion>
  45. <groupId>commons-logging</groupId>
  46. <artifactId>commons-logging</artifactId>
  47. </exclusion>
  48. <exclusion>
  49. <groupId>log4j</groupId>
  50. <artifactId>log4j</artifactId>
  51. </exclusion>
  52. </exclusions>
  53. </dependency>
  54. <dependency>
  55. <groupId>junit</groupId>
  56. <artifactId>junit</artifactId>
  57. <scope>test</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.mockito</groupId>
  61. <artifactId>mockito-all</artifactId>
  62. <scope>test</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>io.netty</groupId>
  66. <artifactId>netty-all</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.mock-server</groupId>
  71. <artifactId>mockserver-netty</artifactId>
  72. <scope>test</scope>
  73. <exclusions>
  74. <exclusion>
  75. <groupId>io.netty</groupId>
  76. <artifactId>netty-buffer</artifactId>
  77. </exclusion>
  78. <exclusion>
  79. <groupId>io.netty</groupId>
  80. <artifactId>netty-codec</artifactId>
  81. </exclusion>
  82. <exclusion>
  83. <groupId>io.netty</groupId>
  84. <artifactId>netty-codec-http</artifactId>
  85. </exclusion>
  86. <exclusion>
  87. <groupId>io.netty</groupId>
  88. <artifactId>netty-common</artifactId>
  89. </exclusion>
  90. <exclusion>
  91. <groupId>io.netty</groupId>
  92. <artifactId>netty-handler</artifactId>
  93. </exclusion>
  94. <exclusion>
  95. <groupId>io.netty</groupId>
  96. <artifactId>netty-transport</artifactId>
  97. </exclusion>
  98. </exclusions>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.hadoop</groupId>
  102. <artifactId>hadoop-common</artifactId>
  103. <scope>test</scope>
  104. <type>test-jar</type>
  105. </dependency>
  106. </dependencies>
  107. <build>
  108. <plugins>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-surefire-plugin</artifactId>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.rat</groupId>
  115. <artifactId>apache-rat-plugin</artifactId>
  116. <configuration>
  117. <excludes>
  118. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  119. </excludes>
  120. </configuration>
  121. </plugin>
  122. <plugin>
  123. <groupId>org.apache.hadoop</groupId>
  124. <artifactId>hadoop-maven-plugins</artifactId>
  125. <executions>
  126. <execution>
  127. <id>compile-protoc</id>
  128. <phase>generate-sources</phase>
  129. <goals>
  130. <goal>protoc</goal>
  131. </goals>
  132. <configuration>
  133. <protocVersion>${protobuf.version}</protocVersion>
  134. <protocCommand>${protoc.path}</protocCommand>
  135. <imports>
  136. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  137. <param>${basedir}/src/main/proto</param>
  138. </imports>
  139. <source>
  140. <directory>${basedir}/src/main/proto</directory>
  141. <includes>
  142. <include>ClientDatanodeProtocol.proto</include>
  143. <include>ClientNamenodeProtocol.proto</include>
  144. <include>acl.proto</include>
  145. <include>xattr.proto</include>
  146. <include>datatransfer.proto</include>
  147. <include>hdfs.proto</include>
  148. <include>encryption.proto</include>
  149. <include>inotify.proto</include>
  150. </includes>
  151. </source>
  152. <output>${project.build.directory}/generated-sources/java</output>
  153. </configuration>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-javadoc-plugin</artifactId>
  160. <configuration>
  161. <excludePackageNames>org.apache.hadoop.hdfs.protocol.proto</excludePackageNames>
  162. </configuration>
  163. </plugin>
  164. </plugins>
  165. </build>
  166. </project>