pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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.4</version>
  27. <packaging>jar</packaging>
  28. <name>io.milvus:milvus-sdk-java</name>
  29. <description>Java SDK for Milvus, a 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>Xiaohai Xu</name>
  41. <email>xiaohai.xu@zilliz.com</email>
  42. <organization>Milvus</organization>
  43. <organizationUrl>http://www.milvus.io</organizationUrl>
  44. </developer>
  45. <developer>
  46. <name>Zhiru Zhu</name>
  47. <email>zhiru.zhu@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.30.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. <version>1.30.2</version>
  92. <scope>runtime</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>io.grpc</groupId>
  96. <artifactId>grpc-protobuf</artifactId>
  97. <version>1.30.2</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>io.grpc</groupId>
  101. <artifactId>grpc-stub</artifactId>
  102. <version>1.30.2</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>javax.annotation</groupId>
  106. <artifactId>javax.annotation-api</artifactId>
  107. <version>1.2</version>
  108. <scope>provided</scope> <!-- not needed at runtime -->
  109. </dependency>
  110. <dependency>
  111. <groupId>io.grpc</groupId>
  112. <artifactId>grpc-testing</artifactId>
  113. <scope>test</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.google.protobuf</groupId>
  117. <artifactId>protobuf-java-util</artifactId>
  118. <version>${protobuf.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.google.errorprone</groupId>
  122. <artifactId>error_prone_annotations</artifactId>
  123. <version>2.3.4</version> <!-- prefer to use 2.3.3 or later -->
  124. </dependency>
  125. <dependency>
  126. <groupId>org.junit.jupiter</groupId>
  127. <artifactId>junit-jupiter</artifactId>
  128. <version>5.5.2</version>
  129. <scope>test</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.commons</groupId>
  133. <artifactId>commons-text</artifactId>
  134. <version>1.6</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.commons</groupId>
  138. <artifactId>commons-collections4</artifactId>
  139. <version>4.4</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.json</groupId>
  143. <artifactId>json</artifactId>
  144. <version>20190722</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.slf4j</groupId>
  148. <artifactId>slf4j-api</artifactId>
  149. <version>1.7.30</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.logging.log4j</groupId>
  153. <artifactId>log4j-slf4j-impl</artifactId>
  154. <version>2.12.1</version>
  155. </dependency>
  156. </dependencies>
  157. <profiles>
  158. <profile>
  159. <id>release</id>
  160. <build>
  161. <plugins>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-source-plugin</artifactId>
  165. <version>3.1.0</version>
  166. <executions>
  167. <execution>
  168. <id>attach-sources</id>
  169. <goals>
  170. <goal>jar-no-fork</goal>
  171. </goals>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-javadoc-plugin</artifactId>
  178. <version>3.1.1</version>
  179. <configuration>
  180. <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
  181. </configuration>
  182. <executions>
  183. <execution>
  184. <id>attach-javadocs</id>
  185. <goals>
  186. <goal>jar</goal>
  187. </goals>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-gpg-plugin</artifactId>
  194. <version>1.6</version>
  195. <executions>
  196. <execution>
  197. <id>sign-artifacts</id>
  198. <phase>verify</phase>
  199. <goals>
  200. <goal>sign</goal>
  201. </goals>
  202. </execution>
  203. </executions>
  204. </plugin>
  205. </plugins>
  206. </build>
  207. </profile>
  208. </profiles>
  209. <build>
  210. <extensions>
  211. <extension>
  212. <groupId>kr.motd.maven</groupId>
  213. <artifactId>os-maven-plugin</artifactId>
  214. <version>1.6.2</version>
  215. </extension>
  216. </extensions>
  217. <plugins>
  218. <plugin>
  219. <groupId>org.sonatype.plugins</groupId>
  220. <artifactId>nexus-staging-maven-plugin</artifactId>
  221. <version>1.6.8</version>
  222. <extensions>true</extensions>
  223. <configuration>
  224. <serverId>ossrh</serverId>
  225. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  226. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  227. </configuration>
  228. </plugin>
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-release-plugin</artifactId>
  232. <version>2.5.3</version>
  233. <configuration>
  234. <autoVersionSubmodules>true</autoVersionSubmodules>
  235. <useReleaseProfile>false</useReleaseProfile>
  236. <releaseProfiles>release</releaseProfiles>
  237. <goals>deploy</goals>
  238. </configuration>
  239. </plugin>
  240. <plugin>
  241. <groupId>org.xolstice.maven.plugins</groupId>
  242. <artifactId>protobuf-maven-plugin</artifactId>
  243. <version>0.6.1</version>
  244. <configuration>
  245. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}
  246. </protocArtifact>
  247. <pluginId>grpc-java</pluginId>
  248. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  249. </pluginArtifact>
  250. </configuration>
  251. <executions>
  252. <execution>
  253. <goals>
  254. <goal>compile</goal>
  255. <goal>compile-custom</goal>
  256. </goals>
  257. </execution>
  258. </executions>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.apache.maven.plugins</groupId>
  262. <artifactId>maven-enforcer-plugin</artifactId>
  263. <version>3.0.0-M2</version>
  264. <executions>
  265. <execution>
  266. <id>enforce</id>
  267. <configuration>
  268. <rules>
  269. <requireUpperBoundDeps/>
  270. </rules>
  271. </configuration>
  272. <goals>
  273. <goal>enforce</goal>
  274. </goals>
  275. </execution>
  276. </executions>
  277. </plugin>
  278. </plugins>
  279. </build>
  280. </project>