pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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.1</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. <dependency>
  144. <groupId>org.slf4j</groupId>
  145. <artifactId>slf4j-api</artifactId>
  146. <version>1.7.30</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.apache.logging.log4j</groupId>
  150. <artifactId>log4j-slf4j-impl</artifactId>
  151. <version>2.12.1</version>
  152. </dependency>
  153. </dependencies>
  154. <profiles>
  155. <profile>
  156. <id>release</id>
  157. <build>
  158. <plugins>
  159. <plugin>
  160. <groupId>org.apache.maven.plugins</groupId>
  161. <artifactId>maven-source-plugin</artifactId>
  162. <version>3.1.0</version>
  163. <executions>
  164. <execution>
  165. <id>attach-sources</id>
  166. <goals>
  167. <goal>jar-no-fork</goal>
  168. </goals>
  169. </execution>
  170. </executions>
  171. </plugin>
  172. <plugin>
  173. <groupId>org.apache.maven.plugins</groupId>
  174. <artifactId>maven-javadoc-plugin</artifactId>
  175. <version>3.1.1</version>
  176. <configuration>
  177. <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
  178. </configuration>
  179. <executions>
  180. <execution>
  181. <id>attach-javadocs</id>
  182. <goals>
  183. <goal>jar</goal>
  184. </goals>
  185. </execution>
  186. </executions>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-gpg-plugin</artifactId>
  191. <version>1.6</version>
  192. <executions>
  193. <execution>
  194. <id>sign-artifacts</id>
  195. <phase>verify</phase>
  196. <goals>
  197. <goal>sign</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. </profile>
  205. </profiles>
  206. <build>
  207. <extensions>
  208. <extension>
  209. <groupId>kr.motd.maven</groupId>
  210. <artifactId>os-maven-plugin</artifactId>
  211. <version>1.6.2</version>
  212. </extension>
  213. </extensions>
  214. <plugins>
  215. <plugin>
  216. <groupId>org.sonatype.plugins</groupId>
  217. <artifactId>nexus-staging-maven-plugin</artifactId>
  218. <version>1.6.8</version>
  219. <extensions>true</extensions>
  220. <configuration>
  221. <serverId>ossrh</serverId>
  222. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  223. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  224. </configuration>
  225. </plugin>
  226. <plugin>
  227. <groupId>org.apache.maven.plugins</groupId>
  228. <artifactId>maven-release-plugin</artifactId>
  229. <version>2.5.3</version>
  230. <configuration>
  231. <autoVersionSubmodules>true</autoVersionSubmodules>
  232. <useReleaseProfile>false</useReleaseProfile>
  233. <releaseProfiles>release</releaseProfiles>
  234. <goals>deploy</goals>
  235. </configuration>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.xolstice.maven.plugins</groupId>
  239. <artifactId>protobuf-maven-plugin</artifactId>
  240. <version>0.6.1</version>
  241. <configuration>
  242. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}
  243. </protocArtifact>
  244. <pluginId>grpc-java</pluginId>
  245. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  246. </pluginArtifact>
  247. </configuration>
  248. <executions>
  249. <execution>
  250. <goals>
  251. <goal>compile</goal>
  252. <goal>compile-custom</goal>
  253. </goals>
  254. </execution>
  255. </executions>
  256. </plugin>
  257. <plugin>
  258. <groupId>org.apache.maven.plugins</groupId>
  259. <artifactId>maven-enforcer-plugin</artifactId>
  260. <version>3.0.0-M2</version>
  261. <executions>
  262. <execution>
  263. <id>enforce</id>
  264. <configuration>
  265. <rules>
  266. <requireUpperBoundDeps/>
  267. </rules>
  268. </configuration>
  269. <goals>
  270. <goal>enforce</goal>
  271. </goals>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. </plugins>
  276. </build>
  277. </project>