pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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.3.2</version>
  27. <packaging>jar</packaging>
  28. <name>io.milvus:milvus-sdk-java</name>
  29. <description>Java SDK for Milvus, a distributed high-performance vector database.</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.59.1</grpc.version>
  60. <protobuf.version>3.24.0</protobuf.version>
  61. <protoc.version>3.24.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. <versio.maven.deploy.plugin>2.8.2</versio.maven.deploy.plugin>
  66. <versio.maven.source.plugin>3.2.1</versio.maven.source.plugin>
  67. <javax.annotation.version>1.2</javax.annotation.version>
  68. <commons.text.version>1.10.0</commons.text.version>
  69. <slf4j.api.version>1.7.30</slf4j.api.version>
  70. <log4j.slf4j.version>2.17.1</log4j.slf4j.version>
  71. <junit.version>4.13.2</junit.version>
  72. <junit.jupiter.version>5.10.1</junit.jupiter.version>
  73. <lombok.version>1.18.22</lombok.version>
  74. <okhttp.version>4.10.0</okhttp.version>
  75. <plexus.version>3.0.24</plexus.version>
  76. <maven.source.plugin.version>3.1.0</maven.source.plugin.version>
  77. <maven.javadoc.plugin.version>3.1.1</maven.javadoc.plugin.version>
  78. <os.maven.plugin.version>1.6.2</os.maven.plugin.version>
  79. <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
  80. <protobuf.maven.plugin.version>0.6.1</protobuf.maven.plugin.version>
  81. <maven.enforcer.plugin.version>3.0.0-M2</maven.enforcer.plugin.version>
  82. <maven.surefire.plugin.version>2.19.1</maven.surefire.plugin.version>
  83. <junit.platform.version>1.1.0</junit.platform.version>
  84. <junit.jupiter.engine.version>5.10.1</junit.jupiter.engine.version>
  85. <jackson.version>2.12.7.1</jackson.version>
  86. <gson.version>2.10.1</gson.version>
  87. <kotlin.version>1.6.20</kotlin.version>
  88. <version.fastjson>1.2.83</version.fastjson>
  89. <mockito.version>5.8.0</mockito.version>
  90. <testcontainers.version>1.19.6</testcontainers.version>
  91. </properties>
  92. <dependencyManagement>
  93. <dependencies>
  94. <dependency>
  95. <groupId>io.grpc</groupId>
  96. <artifactId>grpc-bom</artifactId>
  97. <version>${grpc.version}</version>
  98. <type>pom</type>
  99. <scope>import</scope>
  100. </dependency>
  101. </dependencies>
  102. </dependencyManagement>
  103. <dependencies>
  104. <dependency>
  105. <groupId>org.mockito</groupId>
  106. <artifactId>mockito-core</artifactId>
  107. <version>${mockito.version}</version>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.mockito</groupId>
  112. <artifactId>mockito-junit-jupiter</artifactId>
  113. <version>${mockito.version}</version>
  114. <scope>test</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>io.grpc</groupId>
  118. <artifactId>grpc-netty-shaded</artifactId>
  119. <version>${grpc.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>io.grpc</groupId>
  123. <artifactId>grpc-protobuf</artifactId>
  124. <version>${grpc.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>io.grpc</groupId>
  128. <artifactId>grpc-stub</artifactId>
  129. <version>${grpc.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>javax.annotation</groupId>
  133. <artifactId>javax.annotation-api</artifactId>
  134. <version>${javax.annotation.version}</version>
  135. <scope>provided</scope> <!-- not needed at runtime -->
  136. </dependency>
  137. <dependency>
  138. <groupId>io.grpc</groupId>
  139. <artifactId>grpc-testing</artifactId>
  140. <scope>test</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.google.protobuf</groupId>
  144. <artifactId>protobuf-java</artifactId>
  145. <version>${protobuf.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.apache.commons</groupId>
  149. <artifactId>commons-text</artifactId>
  150. <version>${commons.text.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.apache.commons</groupId>
  154. <artifactId>commons-collections4</artifactId>
  155. <version>${commons-collections4.version}</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>com.fasterxml.jackson.core</groupId>
  159. <artifactId>jackson-databind</artifactId>
  160. <version>${jackson.version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.slf4j</groupId>
  164. <artifactId>slf4j-api</artifactId>
  165. <version>${slf4j.api.version}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.apache.logging.log4j</groupId>
  169. <artifactId>log4j-slf4j-impl</artifactId>
  170. <version>${log4j.slf4j.version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>junit</groupId>
  174. <artifactId>junit</artifactId>
  175. <version>${junit.version}</version>
  176. <scope>test</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.junit.jupiter</groupId>
  180. <artifactId>junit-jupiter-api</artifactId>
  181. <version>${junit.jupiter.version}</version>
  182. <scope>test</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.testcontainers</groupId>
  186. <artifactId>milvus</artifactId>
  187. <version>${testcontainers.version}</version>
  188. <exclusions>
  189. <exclusion>
  190. <groupId>org.slf4j</groupId>
  191. <artifactId>slf4j-api</artifactId>
  192. </exclusion>
  193. <exclusion>
  194. <groupId>org.jetbrains</groupId>
  195. <artifactId>annotations</artifactId>
  196. </exclusion>
  197. </exclusions>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.testcontainers</groupId>
  201. <artifactId>junit-jupiter</artifactId>
  202. <version>${testcontainers.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.projectlombok</groupId>
  206. <artifactId>lombok</artifactId>
  207. <version>${lombok.version}</version>
  208. <scope>provided</scope>
  209. </dependency>
  210. <dependency>
  211. <groupId>com.squareup.okhttp3</groupId>
  212. <artifactId>okhttp</artifactId>
  213. <version>${okhttp.version}</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.codehaus.plexus</groupId>
  217. <artifactId>plexus-utils</artifactId>
  218. <version>${plexus.version}</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>com.google.code.gson</groupId>
  222. <artifactId>gson</artifactId>
  223. <version>${gson.version}</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.jetbrains.kotlin</groupId>
  227. <artifactId>kotlin-stdlib</artifactId>
  228. <version>${kotlin.version}</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.alibaba</groupId>
  232. <artifactId>fastjson</artifactId>
  233. <version>${version.fastjson}</version>
  234. </dependency>
  235. </dependencies>
  236. <profiles>
  237. <profile>
  238. <id>release</id>
  239. <build>
  240. <plugins>
  241. <plugin>
  242. <groupId>org.apache.maven.plugins</groupId>
  243. <artifactId>maven-source-plugin</artifactId>
  244. <version>${maven.source.plugin.version}</version>
  245. <executions>
  246. <execution>
  247. <id>attach-sources</id>
  248. <goals>
  249. <goal>jar-no-fork</goal>
  250. </goals>
  251. </execution>
  252. </executions>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-javadoc-plugin</artifactId>
  257. <version>${maven.javadoc.plugin.version}</version>
  258. <configuration>
  259. <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
  260. </configuration>
  261. <executions>
  262. <execution>
  263. <id>attach-javadocs</id>
  264. <goals>
  265. <goal>jar</goal>
  266. </goals>
  267. </execution>
  268. </executions>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.apache.maven.plugins</groupId>
  272. <artifactId>maven-gpg-plugin</artifactId>
  273. <version>1.6</version>
  274. <executions>
  275. <execution>
  276. <id>sign-artifacts</id>
  277. <phase>verify</phase>
  278. <goals>
  279. <goal>sign</goal>
  280. </goals>
  281. </execution>
  282. </executions>
  283. </plugin>
  284. </plugins>
  285. </build>
  286. </profile>
  287. </profiles>
  288. <build>
  289. <resources>
  290. <resource>
  291. <directory>src/main/resources</directory>
  292. <filtering>true</filtering>
  293. </resource>
  294. </resources>
  295. <extensions>
  296. <extension>
  297. <groupId>kr.motd.maven</groupId>
  298. <artifactId>os-maven-plugin</artifactId>
  299. <version>${os.maven.plugin.version}</version>
  300. </extension>
  301. </extensions>
  302. <plugins>
  303. <plugin>
  304. <groupId>org.sonatype.plugins</groupId>
  305. <artifactId>nexus-staging-maven-plugin</artifactId>
  306. <version>1.6.8</version>
  307. <extensions>true</extensions>
  308. <configuration>
  309. <serverId>ossrh</serverId>
  310. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  311. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  312. </configuration>
  313. </plugin>
  314. <plugin>
  315. <groupId>org.apache.maven.plugins</groupId>
  316. <artifactId>maven-release-plugin</artifactId>
  317. <version>${maven.release.plugin.version}</version>
  318. <configuration>
  319. <autoVersionSubmodules>true</autoVersionSubmodules>
  320. <useReleaseProfile>false</useReleaseProfile>
  321. <releaseProfiles>release</releaseProfiles>
  322. <goals>deploy</goals>
  323. </configuration>
  324. </plugin>
  325. <plugin>
  326. <groupId>org.xolstice.maven.plugins</groupId>
  327. <artifactId>protobuf-maven-plugin</artifactId>
  328. <version>${protobuf.maven.plugin.version}</version>
  329. <configuration>
  330. <protoSourceRoot>src/main/milvus-proto/proto</protoSourceRoot>
  331. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
  332. <pluginId>grpc-java</pluginId>
  333. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  334. </configuration>
  335. <executions>
  336. <execution>
  337. <goals>
  338. <goal>compile</goal>
  339. <goal>compile-custom</goal>
  340. </goals>
  341. </execution>
  342. </executions>
  343. </plugin>
  344. <plugin>
  345. <groupId>org.apache.maven.plugins</groupId>
  346. <artifactId>maven-enforcer-plugin</artifactId>
  347. <version>${maven.enforcer.plugin.version}</version>
  348. <executions>
  349. <execution>
  350. <id>enforce</id>
  351. <configuration>
  352. <rules>
  353. <requireUpperBoundDeps/>
  354. </rules>
  355. </configuration>
  356. <goals>
  357. <goal>enforce</goal>
  358. </goals>
  359. </execution>
  360. </executions>
  361. </plugin>
  362. <!-- JUnit5 tests are not running with maven 3.6.x
  363. https://dzone.com/articles/why-your-junit-5-tests-are-not-running-under-maven
  364. -->
  365. <plugin>
  366. <groupId>org.apache.maven.plugins</groupId>
  367. <artifactId>maven-surefire-plugin</artifactId>
  368. <version>${maven.surefire.plugin.version}</version>
  369. <configuration>
  370. <skipTests>false</skipTests>
  371. </configuration>
  372. <dependencies>
  373. <dependency>
  374. <groupId>org.junit.platform</groupId>
  375. <artifactId>junit-platform-surefire-provider</artifactId>
  376. <version>${junit.platform.version}</version>
  377. </dependency>
  378. <dependency>
  379. <groupId>org.junit.jupiter</groupId>
  380. <artifactId>junit-jupiter-engine</artifactId>
  381. <version>${junit.jupiter.engine.version}</version>
  382. </dependency>
  383. </dependencies>
  384. </plugin>
  385. </plugins>
  386. </build>
  387. </project>