pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <project xmlns="http://maven.apache.org/POM/4.0.0"
  21. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  23. <modelVersion>4.0.0</modelVersion>
  24. <groupId>io.milvus</groupId>
  25. <artifactId>milvus-sdk-java</artifactId>
  26. <version>0.8.0-SNAPSHOT</version>
  27. <packaging>jar</packaging>
  28. <name>io.milvus:milvus-sdk-java</name>
  29. <description>Java SDK for Milvus distributed high-performance vector search engine.</description>
  30. <url>https://github.com/milvus-io/milvus-sdk-java</url>
  31. <licenses>
  32. <license>
  33. <name>Apache License, Version 2.0</name>
  34. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  35. <distribution>repo</distribution>
  36. </license>
  37. </licenses>
  38. <developers>
  39. <developer>
  40. <name>Zhiru Zhu</name>
  41. <email>zhiru.zhu@zilliz.com</email>
  42. <organization>Milvus</organization>
  43. <organizationUrl>http://www.milvus.io</organizationUrl>
  44. </developer>
  45. <developer>
  46. <name>Xiaohai Xu</name>
  47. <email>xiaohai.xu@zilliz.com</email>
  48. <organization>Milvus</organization>
  49. <organizationUrl>http://www.milvus.io</organizationUrl>
  50. </developer>
  51. </developers>
  52. <scm>
  53. <connection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</connection>
  54. <developerConnection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</developerConnection>
  55. <url>https://github.com/milvus-io/milvus-sdk-java</url>
  56. </scm>
  57. <distributionManagement>
  58. <snapshotRepository>
  59. <id>ossrh</id>
  60. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  61. </snapshotRepository>
  62. </distributionManagement>
  63. <properties>
  64. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  65. <grpc.version>1.27.2</grpc.version>
  66. <protobuf.version>3.11.0</protobuf.version>
  67. <protoc.version>3.11.0</protoc.version>
  68. <maven.compiler.source>1.8</maven.compiler.source>
  69. <maven.compiler.target>1.8</maven.compiler.target>
  70. </properties>
  71. <dependencyManagement>
  72. <dependencies>
  73. <dependency>
  74. <groupId>io.grpc</groupId>
  75. <artifactId>grpc-bom</artifactId>
  76. <version>${grpc.version}</version>
  77. <type>pom</type>
  78. <scope>import</scope>
  79. </dependency>
  80. </dependencies>
  81. </dependencyManagement>
  82. <dependencies>
  83. <dependency>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-gpg-plugin</artifactId>
  86. <version>1.6</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>io.grpc</groupId>
  90. <artifactId>grpc-netty-shaded</artifactId>
  91. <scope>runtime</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>io.grpc</groupId>
  95. <artifactId>grpc-protobuf</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>io.grpc</groupId>
  99. <artifactId>grpc-stub</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>javax.annotation</groupId>
  103. <artifactId>javax.annotation-api</artifactId>
  104. <version>1.2</version>
  105. <scope>provided</scope> <!-- not needed at runtime -->
  106. </dependency>
  107. <dependency>
  108. <groupId>io.grpc</groupId>
  109. <artifactId>grpc-testing</artifactId>
  110. <scope>test</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.google.protobuf</groupId>
  114. <artifactId>protobuf-java-util</artifactId>
  115. <version>${protobuf.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.google.errorprone</groupId>
  119. <artifactId>error_prone_annotations</artifactId>
  120. <version>2.3.4</version> <!-- prefer to use 2.3.3 or later -->
  121. </dependency>
  122. <dependency>
  123. <groupId>org.junit.jupiter</groupId>
  124. <artifactId>junit-jupiter</artifactId>
  125. <version>5.5.2</version>
  126. <scope>test</scope>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.apache.commons</groupId>
  130. <artifactId>commons-text</artifactId>
  131. <version>1.6</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.commons</groupId>
  135. <artifactId>commons-collections4</artifactId>
  136. <version>4.4</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.json</groupId>
  140. <artifactId>json</artifactId>
  141. <version>20190722</version>
  142. </dependency>
  143. </dependencies>
  144. <profiles>
  145. <profile>
  146. <id>release</id>
  147. <build>
  148. <plugins>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-source-plugin</artifactId>
  152. <version>3.1.0</version>
  153. <executions>
  154. <execution>
  155. <id>attach-sources</id>
  156. <goals>
  157. <goal>jar-no-fork</goal>
  158. </goals>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-javadoc-plugin</artifactId>
  165. <version>3.1.1</version>
  166. <configuration>
  167. <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
  168. </configuration>
  169. <executions>
  170. <execution>
  171. <id>attach-javadocs</id>
  172. <goals>
  173. <goal>jar</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-gpg-plugin</artifactId>
  181. <version>1.6</version>
  182. <executions>
  183. <execution>
  184. <id>sign-artifacts</id>
  185. <phase>verify</phase>
  186. <goals>
  187. <goal>sign</goal>
  188. </goals>
  189. </execution>
  190. </executions>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. </profile>
  195. </profiles>
  196. <build>
  197. <extensions>
  198. <extension>
  199. <groupId>kr.motd.maven</groupId>
  200. <artifactId>os-maven-plugin</artifactId>
  201. <version>1.6.2</version>
  202. </extension>
  203. </extensions>
  204. <plugins>
  205. <plugin>
  206. <groupId>org.sonatype.plugins</groupId>
  207. <artifactId>nexus-staging-maven-plugin</artifactId>
  208. <version>1.6.8</version>
  209. <extensions>true</extensions>
  210. <configuration>
  211. <serverId>ossrh</serverId>
  212. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  213. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  214. </configuration>
  215. </plugin>
  216. <plugin>
  217. <groupId>org.apache.maven.plugins</groupId>
  218. <artifactId>maven-release-plugin</artifactId>
  219. <version>2.5.3</version>
  220. <configuration>
  221. <autoVersionSubmodules>true</autoVersionSubmodules>
  222. <useReleaseProfile>false</useReleaseProfile>
  223. <releaseProfiles>release</releaseProfiles>
  224. <goals>deploy</goals>
  225. </configuration>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.xolstice.maven.plugins</groupId>
  229. <artifactId>protobuf-maven-plugin</artifactId>
  230. <version>0.6.1</version>
  231. <configuration>
  232. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}
  233. </protocArtifact>
  234. <pluginId>grpc-java</pluginId>
  235. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  236. </pluginArtifact>
  237. </configuration>
  238. <executions>
  239. <execution>
  240. <goals>
  241. <goal>compile</goal>
  242. <goal>compile-custom</goal>
  243. </goals>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-enforcer-plugin</artifactId>
  250. <version>3.0.0-M2</version>
  251. <executions>
  252. <execution>
  253. <id>enforce</id>
  254. <configuration>
  255. <rules>
  256. <requireUpperBoundDeps/>
  257. </rules>
  258. </configuration>
  259. <goals>
  260. <goal>enforce</goal>
  261. </goals>
  262. </execution>
  263. </executions>
  264. </plugin>
  265. </plugins>
  266. </build>
  267. </project>