pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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>2.0.0</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>Xiaofan Luan</name>
  41. <email>xiaofan.luan@zilliz.com</email>
  42. <organization>Milvus</organization>
  43. <organizationUrl>http://www.milvus.io</organizationUrl>
  44. </developer>
  45. </developers>
  46. <scm>
  47. <connection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</connection>
  48. <developerConnection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</developerConnection>
  49. <url>https://github.com/milvus-io/milvus-sdk-java</url>
  50. </scm>
  51. <distributionManagement>
  52. <snapshotRepository>
  53. <id>ossrh</id>
  54. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  55. </snapshotRepository>
  56. </distributionManagement>
  57. <properties>
  58. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  59. <grpc.version>1.38.0</grpc.version>
  60. <protobuf.version>3.12.0</protobuf.version>
  61. <protoc.version>3.12.0</protoc.version>
  62. <commons-collections4.version>4.3</commons-collections4.version>
  63. <maven.compiler.source>1.8</maven.compiler.source>
  64. <maven.compiler.target>1.8</maven.compiler.target>
  65. </properties>
  66. <dependencyManagement>
  67. <dependencies>
  68. <dependency>
  69. <groupId>io.grpc</groupId>
  70. <artifactId>grpc-bom</artifactId>
  71. <version>${grpc.version}</version>
  72. <type>pom</type>
  73. <scope>import</scope>
  74. </dependency>
  75. </dependencies>
  76. </dependencyManagement>
  77. <dependencies>
  78. <dependency>
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-gpg-plugin</artifactId>
  81. <version>1.6</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>io.grpc</groupId>
  85. <artifactId>grpc-netty-shaded</artifactId>
  86. <version>${grpc.version}</version>
  87. <scope>runtime</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>io.grpc</groupId>
  91. <artifactId>grpc-protobuf</artifactId>
  92. <version>${grpc.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>io.grpc</groupId>
  96. <artifactId>grpc-stub</artifactId>
  97. <version>${grpc.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>javax.annotation</groupId>
  101. <artifactId>javax.annotation-api</artifactId>
  102. <version>1.2</version>
  103. <scope>provided</scope> <!-- not needed at runtime -->
  104. </dependency>
  105. <dependency>
  106. <groupId>io.grpc</groupId>
  107. <artifactId>grpc-testing</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.google.protobuf</groupId>
  112. <artifactId>protobuf-java-util</artifactId>
  113. <version>${protobuf.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.apache.commons</groupId>
  117. <artifactId>commons-text</artifactId>
  118. <version>1.6</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.commons</groupId>
  122. <artifactId>commons-collections4</artifactId>
  123. <version>${commons-collections4.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.json</groupId>
  127. <artifactId>json</artifactId>
  128. <version>20190722</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.slf4j</groupId>
  132. <artifactId>slf4j-api</artifactId>
  133. <version>1.7.30</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.logging.log4j</groupId>
  137. <artifactId>log4j-slf4j-impl</artifactId>
  138. <version>2.12.1</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.testcontainers</groupId>
  142. <artifactId>testcontainers</artifactId>
  143. <version>1.14.3</version>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.testcontainers</groupId>
  148. <artifactId>junit-jupiter</artifactId>
  149. <version>1.14.3</version>
  150. <scope>test</scope>
  151. </dependency>
  152. </dependencies>
  153. <profiles>
  154. <profile>
  155. <id>release</id>
  156. <build>
  157. <plugins>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-source-plugin</artifactId>
  161. <version>3.1.0</version>
  162. <executions>
  163. <execution>
  164. <id>attach-sources</id>
  165. <goals>
  166. <goal>jar-no-fork</goal>
  167. </goals>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-javadoc-plugin</artifactId>
  174. <version>3.1.1</version>
  175. <configuration>
  176. <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
  177. </configuration>
  178. <executions>
  179. <execution>
  180. <id>attach-javadocs</id>
  181. <goals>
  182. <goal>jar</goal>
  183. </goals>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.apache.maven.plugins</groupId>
  189. <artifactId>maven-gpg-plugin</artifactId>
  190. <version>1.6</version>
  191. <executions>
  192. <execution>
  193. <id>sign-artifacts</id>
  194. <phase>verify</phase>
  195. <goals>
  196. <goal>sign</goal>
  197. </goals>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. </plugins>
  202. </build>
  203. </profile>
  204. </profiles>
  205. <build>
  206. <resources>
  207. <resource>
  208. <directory>src/main/resources</directory>
  209. <filtering>true</filtering>
  210. </resource>
  211. </resources>
  212. <extensions>
  213. <extension>
  214. <groupId>kr.motd.maven</groupId>
  215. <artifactId>os-maven-plugin</artifactId>
  216. <version>1.6.2</version>
  217. </extension>
  218. </extensions>
  219. <plugins>
  220. <plugin>
  221. <groupId>org.sonatype.plugins</groupId>
  222. <artifactId>nexus-staging-maven-plugin</artifactId>
  223. <version>1.6.8</version>
  224. <extensions>true</extensions>
  225. <configuration>
  226. <serverId>ossrh</serverId>
  227. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  228. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  229. </configuration>
  230. </plugin>
  231. <plugin>
  232. <groupId>org.apache.maven.plugins</groupId>
  233. <artifactId>maven-release-plugin</artifactId>
  234. <version>2.5.3</version>
  235. <configuration>
  236. <autoVersionSubmodules>true</autoVersionSubmodules>
  237. <useReleaseProfile>false</useReleaseProfile>
  238. <releaseProfiles>release</releaseProfiles>
  239. <goals>deploy</goals>
  240. </configuration>
  241. </plugin>
  242. <plugin>
  243. <groupId>org.xolstice.maven.plugins</groupId>
  244. <artifactId>protobuf-maven-plugin</artifactId>
  245. <version>0.6.1</version>
  246. <configuration>
  247. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
  248. <pluginId>grpc-java</pluginId>
  249. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</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. <!-- JUnit5 tests are not running with maven 3.6.x
  279. https://dzone.com/articles/why-your-junit-5-tests-are-not-running-under-maven
  280. -->
  281. <plugin>
  282. <groupId>org.apache.maven.plugins</groupId>
  283. <artifactId>maven-surefire-plugin</artifactId>
  284. <version>2.19.1</version>
  285. <configuration>
  286. <skipTests>true</skipTests>
  287. </configuration>
  288. <dependencies>
  289. <dependency>
  290. <groupId>org.junit.platform</groupId>
  291. <artifactId>junit-platform-surefire-provider</artifactId>
  292. <version>1.1.0</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>org.junit.jupiter</groupId>
  296. <artifactId>junit-jupiter-engine</artifactId>
  297. <version>5.1.0</version>
  298. </dependency>
  299. </dependencies>
  300. </plugin>
  301. </plugins>
  302. </build>
  303. </project>