pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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-ozone</artifactId>
  21. <version>0.5.0-SNAPSHOT</version>
  22. </parent>
  23. <artifactId>hadoop-ozone-csi</artifactId>
  24. <version>0.5.0-SNAPSHOT</version>
  25. <description>Apache Hadoop Ozone CSI service</description>
  26. <name>Apache Hadoop Ozone CSI service</name>
  27. <packaging>jar</packaging>
  28. <properties>
  29. <grpc.version>1.17.1</grpc.version>
  30. </properties>
  31. <dependencies>
  32. <dependency>
  33. <groupId>com.google.protobuf</groupId>
  34. <artifactId>protobuf-java-util</artifactId>
  35. <version>3.5.1</version>
  36. <exclusions>
  37. <exclusion>
  38. <groupId>com.google.protobuf</groupId>
  39. <artifactId>protobuf-java</artifactId>
  40. </exclusion>
  41. </exclusions>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.hadoop</groupId>
  45. <artifactId>hadoop-hdds-config</artifactId>
  46. <exclusions>
  47. <exclusion>
  48. <groupId>org.apache.hadoop</groupId>
  49. <artifactId>hadoop-common</artifactId>
  50. </exclusion>
  51. <exclusion>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-hdfs</artifactId>
  54. </exclusion>
  55. </exclusions>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.google.guava</groupId>
  59. <artifactId>guava</artifactId>
  60. <version>26.0-android</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.google.protobuf</groupId>
  64. <artifactId>protobuf-java</artifactId>
  65. <version>3.5.1</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.grpc</groupId>
  69. <artifactId>grpc-netty</artifactId>
  70. <version>${grpc.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>io.netty</groupId>
  74. <artifactId>netty-transport-native-epoll</artifactId>
  75. <version>4.1.30.Final</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.netty</groupId>
  79. <artifactId>netty-transport-native-unix-common</artifactId>
  80. <version>4.1.30.Final</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.grpc</groupId>
  84. <artifactId>grpc-protobuf</artifactId>
  85. <version>${grpc.version}</version>
  86. <exclusions>
  87. <exclusion>
  88. <groupId>com.google.protobuf</groupId>
  89. <artifactId>protobuf-java</artifactId>
  90. </exclusion>
  91. </exclusions>
  92. </dependency>
  93. <dependency>
  94. <groupId>io.grpc</groupId>
  95. <artifactId>grpc-stub</artifactId>
  96. <version>${grpc.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.hadoop</groupId>
  100. <artifactId>hadoop-ozone-client</artifactId>
  101. <exclusions>
  102. <exclusion>
  103. <groupId>com.google.guava</groupId>
  104. <artifactId>guava</artifactId>
  105. </exclusion>
  106. <exclusion>
  107. <groupId>com.google.protobuf</groupId>
  108. <artifactId>protobuf-java</artifactId>
  109. </exclusion>
  110. <exclusion>
  111. <groupId>io.netty</groupId>
  112. <artifactId>netty-all</artifactId>
  113. </exclusion>
  114. <exclusion>
  115. <groupId>io.netty</groupId>
  116. <artifactId>netty</artifactId>
  117. </exclusion>
  118. </exclusions>
  119. </dependency>
  120. </dependencies>
  121. <build>
  122. <extensions>
  123. <extension>
  124. <groupId>kr.motd.maven</groupId>
  125. <artifactId>os-maven-plugin</artifactId>
  126. <version>${os-maven-plugin.version}</version>
  127. </extension>
  128. </extensions>
  129. <plugins>
  130. <plugin>
  131. <groupId>org.xolstice.maven.plugins</groupId>
  132. <artifactId>protobuf-maven-plugin</artifactId>
  133. <version>${protobuf-maven-plugin.version}</version>
  134. <extensions>true</extensions>
  135. <configuration>
  136. <protocArtifact>
  137. com.google.protobuf:protoc:${protobuf-compile.version}:exe:${os.detected.classifier}
  138. </protocArtifact>
  139. <protoSourceRoot>${basedir}/src/main/proto/</protoSourceRoot>
  140. <includes>
  141. <include>csi.proto</include>
  142. </includes>
  143. <outputDirectory>target/generated-sources/java</outputDirectory>
  144. <clearOutputDirectory>false</clearOutputDirectory>
  145. </configuration>
  146. <executions>
  147. <execution>
  148. <id>compile-protoc</id>
  149. <goals>
  150. <goal>compile</goal>
  151. <goal>test-compile</goal>
  152. <goal>compile-custom</goal>
  153. <goal>test-compile-custom</goal>
  154. </goals>
  155. <configuration>
  156. <pluginId>grpc-java</pluginId>
  157. <pluginArtifact>
  158. io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  159. </pluginArtifact>
  160. </configuration>
  161. </execution>
  162. </executions>
  163. </plugin>
  164. <plugin>
  165. <artifactId>maven-enforcer-plugin</artifactId>
  166. <executions>
  167. <execution>
  168. <id>depcheck</id>
  169. <phase></phase>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.codehaus.mojo</groupId>
  175. <artifactId>findbugs-maven-plugin</artifactId>
  176. <configuration>
  177. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
  178. </excludeFilterFile>
  179. </configuration>
  180. </plugin>
  181. </plugins>
  182. </build>
  183. </project>