pom.xml 5.5 KB

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