pom.xml 5.9 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. 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>3.0.0-alpha2-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <groupId>org.apache.hadoop</groupId>
  25. <artifactId>hadoop-hdfs-client</artifactId>
  26. <version>3.0.0-alpha2-SNAPSHOT</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. <dependency>
  107. <groupId>com.fasterxml.jackson.core</groupId>
  108. <artifactId>jackson-annotations</artifactId>
  109. </dependency>
  110. </dependencies>
  111. <build>
  112. <plugins>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-surefire-plugin</artifactId>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.apache.rat</groupId>
  119. <artifactId>apache-rat-plugin</artifactId>
  120. <configuration>
  121. <excludes>
  122. <exclude>dev-support/findbugsExcludeFile.xml</exclude>
  123. </excludes>
  124. </configuration>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.hadoop</groupId>
  128. <artifactId>hadoop-maven-plugins</artifactId>
  129. <executions>
  130. <execution>
  131. <id>compile-protoc</id>
  132. <phase>generate-sources</phase>
  133. <goals>
  134. <goal>protoc</goal>
  135. </goals>
  136. <configuration>
  137. <protocVersion>${protobuf.version}</protocVersion>
  138. <protocCommand>${protoc.path}</protocCommand>
  139. <imports>
  140. <param>${basedir}/../../hadoop-common-project/hadoop-common/src/main/proto</param>
  141. <param>${basedir}/src/main/proto</param>
  142. </imports>
  143. <source>
  144. <directory>${basedir}/src/main/proto</directory>
  145. <includes>
  146. <include>ClientDatanodeProtocol.proto</include>
  147. <include>ClientNamenodeProtocol.proto</include>
  148. <include>acl.proto</include>
  149. <include>xattr.proto</include>
  150. <include>datatransfer.proto</include>
  151. <include>hdfs.proto</include>
  152. <include>encryption.proto</include>
  153. <include>inotify.proto</include>
  154. <include>erasurecoding.proto</include>
  155. <include>ReconfigurationProtocol.proto</include>
  156. </includes>
  157. </source>
  158. <output>${project.build.directory}/generated-sources/java</output>
  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>