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-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. </dependency>
  47. <dependency>
  48. <groupId>com.google.guava</groupId>
  49. <artifactId>guava</artifactId>
  50. <version>26.0-android</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.google.protobuf</groupId>
  54. <artifactId>protobuf-java</artifactId>
  55. <version>3.5.1</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>io.grpc</groupId>
  59. <artifactId>grpc-netty</artifactId>
  60. <version>${grpc.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>io.netty</groupId>
  64. <artifactId>netty-transport-native-epoll</artifactId>
  65. <version>4.1.30.Final</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.grpc</groupId>
  69. <artifactId>grpc-protobuf</artifactId>
  70. <version>${grpc.version}</version>
  71. <exclusions>
  72. <exclusion>
  73. <groupId>com.google.protobuf</groupId>
  74. <artifactId>protobuf-java</artifactId>
  75. </exclusion>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>io.grpc</groupId>
  80. <artifactId>grpc-stub</artifactId>
  81. <version>${grpc.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.hadoop</groupId>
  85. <artifactId>hadoop-ozone-client</artifactId>
  86. <exclusions>
  87. <exclusion>
  88. <groupId>com.google.guava</groupId>
  89. <artifactId>guava</artifactId>
  90. </exclusion>
  91. <exclusion>
  92. <groupId>com.google.protobuf</groupId>
  93. <artifactId>protobuf-java</artifactId>
  94. </exclusion>
  95. <exclusion>
  96. <groupId>io.netty</groupId>
  97. <artifactId>netty-all</artifactId>
  98. </exclusion>
  99. </exclusions>
  100. </dependency>
  101. </dependencies>
  102. <build>
  103. <extensions>
  104. <extension>
  105. <groupId>kr.motd.maven</groupId>
  106. <artifactId>os-maven-plugin</artifactId>
  107. <version>${os-maven-plugin.version}</version>
  108. </extension>
  109. </extensions>
  110. <plugins>
  111. <plugin>
  112. <groupId>org.xolstice.maven.plugins</groupId>
  113. <artifactId>protobuf-maven-plugin</artifactId>
  114. <version>${protobuf-maven-plugin.version}</version>
  115. <extensions>true</extensions>
  116. <configuration>
  117. <protocArtifact>
  118. com.google.protobuf:protoc:${protobuf-compile.version}:exe:${os.detected.classifier}
  119. </protocArtifact>
  120. <protoSourceRoot>${basedir}/src/main/proto/</protoSourceRoot>
  121. <includes>
  122. <include>csi.proto</include>
  123. </includes>
  124. <outputDirectory>target/generated-sources/java</outputDirectory>
  125. <clearOutputDirectory>false</clearOutputDirectory>
  126. </configuration>
  127. <executions>
  128. <execution>
  129. <id>compile-protoc</id>
  130. <goals>
  131. <goal>compile</goal>
  132. <goal>test-compile</goal>
  133. <goal>compile-custom</goal>
  134. <goal>test-compile-custom</goal>
  135. </goals>
  136. <configuration>
  137. <pluginId>grpc-java</pluginId>
  138. <pluginArtifact>
  139. io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  140. </pluginArtifact>
  141. </configuration>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. <plugin>
  146. <artifactId>maven-enforcer-plugin</artifactId>
  147. <executions>
  148. <execution>
  149. <id>depcheck</id>
  150. <phase></phase>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.codehaus.mojo</groupId>
  156. <artifactId>findbugs-maven-plugin</artifactId>
  157. <configuration>
  158. <excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml
  159. </excludeFilterFile>
  160. </configuration>
  161. </plugin>
  162. </plugins>
  163. </build>
  164. </project>