pom.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  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.4.3</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.36</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.12.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.7.0</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.16.1</jackson.version>
  86. <gson.version>2.10.1</gson.version>
  87. <kotlin.version>1.9.10</kotlin.version>
  88. <mockito.version>4.11.0</mockito.version>
  89. <testcontainers.version>1.19.8</testcontainers.version>
  90. <apache.commons.pool2.version>2.12.0</apache.commons.pool2.version>
  91. <hadoop.version>3.3.6</hadoop.version>
  92. <hbase.version>1.2.0</hbase.version>
  93. <parquet.version>1.13.1</parquet.version>
  94. <unirest.version>3.13.10</unirest.version>
  95. <guava.version>32.1.3-jre</guava.version>
  96. <errorprone.version>2.21.1</errorprone.version>
  97. <snappy.version>1.1.10.5</snappy.version>
  98. <!--storage sdk-->
  99. <aws-java-sdk-s3.version>1.12.687</aws-java-sdk-s3.version>
  100. <minio-java-sdk.veresion>8.5.7</minio-java-sdk.veresion>
  101. <azure-java-blob-sdk.version>12.25.3</azure-java-blob-sdk.version>
  102. <azure-java-identity-sdk.version>1.10.1</azure-java-identity-sdk.version>
  103. </properties>
  104. <dependencyManagement>
  105. <dependencies>
  106. <dependency>
  107. <groupId>io.grpc</groupId>
  108. <artifactId>grpc-bom</artifactId>
  109. <version>${grpc.version}</version>
  110. <type>pom</type>
  111. <scope>import</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.slf4j</groupId>
  115. <artifactId>slf4j-api</artifactId>
  116. <version>${slf4j.api.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.fasterxml.jackson.core</groupId>
  120. <artifactId>jackson-databind</artifactId>
  121. <version>${jackson.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.fasterxml.jackson.core</groupId>
  125. <artifactId>jackson-annotations</artifactId>
  126. <version>${jackson.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.fasterxml.jackson.core</groupId>
  130. <artifactId>jackson-core</artifactId>
  131. <version>${jackson.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.google.guava</groupId>
  135. <artifactId>guava</artifactId>
  136. <version>${guava.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.google.errorprone</groupId>
  140. <artifactId>error_prone_annotations</artifactId>
  141. <version>${errorprone.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.jetbrains.kotlin</groupId>
  145. <artifactId>kotlin-stdlib-jdk8</artifactId>
  146. <version>${kotlin.version}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.jetbrains.kotlin</groupId>
  150. <artifactId>kotlin-stdlib-common</artifactId>
  151. <version>${kotlin.version}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.jetbrains.kotlin</groupId>
  155. <artifactId>kotlin-stdlib</artifactId>
  156. <version>${kotlin.version}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.xerial.snappy</groupId>
  160. <artifactId>snappy-java</artifactId>
  161. <version>${snappy.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.testcontainers</groupId>
  165. <artifactId>testcontainers-bom</artifactId>
  166. <version>${testcontainers.version}</version>
  167. <type>pom</type>
  168. <scope>import</scope>
  169. </dependency>
  170. </dependencies>
  171. </dependencyManagement>
  172. <dependencies>
  173. <dependency>
  174. <groupId>org.mockito</groupId>
  175. <artifactId>mockito-core</artifactId>
  176. <version>${mockito.version}</version>
  177. <scope>test</scope>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.mockito</groupId>
  181. <artifactId>mockito-junit-jupiter</artifactId>
  182. <version>${mockito.version}</version>
  183. <scope>test</scope>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.mockito</groupId>
  187. <artifactId>mockito-inline</artifactId>
  188. <version>${mockito.version}</version>
  189. <scope>test</scope>
  190. </dependency>
  191. <dependency>
  192. <groupId>io.grpc</groupId>
  193. <artifactId>grpc-netty-shaded</artifactId>
  194. <version>${grpc.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>io.grpc</groupId>
  198. <artifactId>grpc-protobuf</artifactId>
  199. <version>${grpc.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>io.grpc</groupId>
  203. <artifactId>grpc-stub</artifactId>
  204. <version>${grpc.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>javax.annotation</groupId>
  208. <artifactId>javax.annotation-api</artifactId>
  209. <version>${javax.annotation.version}</version>
  210. <scope>provided</scope> <!-- not needed at runtime -->
  211. </dependency>
  212. <dependency>
  213. <groupId>io.grpc</groupId>
  214. <artifactId>grpc-testing</artifactId>
  215. <scope>test</scope>
  216. </dependency>
  217. <dependency>
  218. <groupId>com.google.protobuf</groupId>
  219. <artifactId>protobuf-java</artifactId>
  220. <version>${protobuf.version}</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>org.apache.commons</groupId>
  224. <artifactId>commons-text</artifactId>
  225. <version>${commons.text.version}</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>org.apache.commons</groupId>
  229. <artifactId>commons-collections4</artifactId>
  230. <version>${commons-collections4.version}</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.apache.logging.log4j</groupId>
  234. <artifactId>log4j-slf4j-impl</artifactId>
  235. <version>${log4j.slf4j.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>junit</groupId>
  239. <artifactId>junit</artifactId>
  240. <version>${junit.version}</version>
  241. <scope>test</scope>
  242. </dependency>
  243. <dependency>
  244. <groupId>org.junit.jupiter</groupId>
  245. <artifactId>junit-jupiter-api</artifactId>
  246. <version>${junit.jupiter.version}</version>
  247. <scope>test</scope>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.testcontainers</groupId>
  251. <artifactId>milvus</artifactId>
  252. <scope>test</scope>
  253. <exclusions>
  254. <exclusion>
  255. <groupId>org.slf4j</groupId>
  256. <artifactId>slf4j-api</artifactId>
  257. </exclusion>
  258. <exclusion>
  259. <groupId>org.jetbrains</groupId>
  260. <artifactId>annotations</artifactId>
  261. </exclusion>
  262. </exclusions>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.testcontainers</groupId>
  266. <artifactId>junit-jupiter</artifactId>
  267. <scope>test</scope>
  268. </dependency>
  269. <dependency>
  270. <groupId>org.projectlombok</groupId>
  271. <artifactId>lombok</artifactId>
  272. <version>${lombok.version}</version>
  273. <scope>provided</scope>
  274. </dependency>
  275. <dependency>
  276. <groupId>com.squareup.okhttp3</groupId>
  277. <artifactId>okhttp</artifactId>
  278. <version>${okhttp.version}</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.codehaus.plexus</groupId>
  282. <artifactId>plexus-utils</artifactId>
  283. <version>${plexus.version}</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>com.google.code.gson</groupId>
  287. <artifactId>gson</artifactId>
  288. <version>${gson.version}</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.apache.parquet</groupId>
  292. <artifactId>parquet-avro</artifactId>
  293. <version>${parquet.version}</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>org.apache.parquet</groupId>
  297. <artifactId>parquet-hadoop</artifactId>
  298. <version>${parquet.version}</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>com.konghq</groupId>
  302. <artifactId>unirest-java</artifactId>
  303. <version>${unirest.version}</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.apache.hadoop</groupId>
  307. <artifactId>hadoop-client</artifactId>
  308. <version>${hadoop.version}</version>
  309. <exclusions>
  310. <exclusion>
  311. <artifactId>netty</artifactId>
  312. <groupId>io.netty</groupId>
  313. </exclusion>
  314. <exclusion>
  315. <artifactId>netty-all</artifactId>
  316. <groupId>io.netty</groupId>
  317. </exclusion>
  318. <exclusion>
  319. <groupId>ch.qos.reload4j</groupId>
  320. <artifactId>reload4j</artifactId>
  321. </exclusion>
  322. <exclusion>
  323. <groupId>com.nimbusds</groupId>
  324. <artifactId>nimbus-jose-jwt</artifactId>
  325. </exclusion>
  326. <exclusion>
  327. <groupId>com.fasterxml.woodstox</groupId>
  328. <artifactId>woodstox-core</artifactId>
  329. </exclusion>
  330. <exclusion>
  331. <artifactId>slf4j-reload4j</artifactId>
  332. <groupId>org.slf4j</groupId>
  333. </exclusion>
  334. </exclusions>
  335. </dependency>
  336. <dependency>
  337. <groupId>com.fasterxml.jackson.dataformat</groupId>
  338. <artifactId>jackson-dataformat-csv</artifactId>
  339. <version>${jackson.version}</version>
  340. </dependency>
  341. <!-- storage sdk-->
  342. <dependency>
  343. <groupId>com.amazonaws</groupId>
  344. <artifactId>aws-java-sdk-s3</artifactId>
  345. <version>${aws-java-sdk-s3.version}</version>
  346. <exclusions>
  347. <exclusion>
  348. <artifactId>commons-logging</artifactId>
  349. <groupId>commons-logging</groupId>
  350. </exclusion>
  351. </exclusions>
  352. </dependency>
  353. <dependency>
  354. <groupId>com.amazonaws</groupId>
  355. <artifactId>aws-java-sdk-sts</artifactId>
  356. <version>${aws-java-sdk-s3.version}</version>
  357. </dependency>
  358. <dependency>
  359. <groupId>io.minio</groupId>
  360. <artifactId>minio</artifactId>
  361. <version>${minio-java-sdk.veresion}</version>
  362. </dependency>
  363. <dependency>
  364. <groupId>com.azure</groupId>
  365. <artifactId>azure-storage-blob</artifactId>
  366. <version>${azure-java-blob-sdk.version}</version>
  367. </dependency>
  368. <dependency>
  369. <groupId>com.azure</groupId>
  370. <artifactId>azure-identity</artifactId>
  371. <version>${azure-java-identity-sdk.version}</version>
  372. <exclusions>
  373. <exclusion>
  374. <artifactId>jna-platform</artifactId>
  375. <groupId>net.java.dev.jna</groupId>
  376. </exclusion>
  377. </exclusions>
  378. </dependency>
  379. <dependency>
  380. <groupId>org.apache.commons</groupId>
  381. <artifactId>commons-pool2</artifactId>
  382. <version>${apache.commons.pool2.version}</version>
  383. </dependency>
  384. </dependencies>
  385. <profiles>
  386. <profile>
  387. <id>release</id>
  388. <build>
  389. <plugins>
  390. <plugin>
  391. <groupId>org.apache.maven.plugins</groupId>
  392. <artifactId>maven-source-plugin</artifactId>
  393. <version>${maven.source.plugin.version}</version>
  394. <executions>
  395. <execution>
  396. <id>attach-sources</id>
  397. <goals>
  398. <goal>jar-no-fork</goal>
  399. </goals>
  400. </execution>
  401. </executions>
  402. </plugin>
  403. <plugin>
  404. <groupId>org.apache.maven.plugins</groupId>
  405. <artifactId>maven-javadoc-plugin</artifactId>
  406. <version>${maven.javadoc.plugin.version}</version>
  407. <configuration>
  408. <javadocExecutable>/usr/bin/javadoc</javadocExecutable>
  409. </configuration>
  410. <executions>
  411. <execution>
  412. <id>attach-javadocs</id>
  413. <goals>
  414. <goal>jar</goal>
  415. </goals>
  416. </execution>
  417. </executions>
  418. </plugin>
  419. <plugin>
  420. <groupId>org.apache.maven.plugins</groupId>
  421. <artifactId>maven-gpg-plugin</artifactId>
  422. <version>1.6</version>
  423. <executions>
  424. <execution>
  425. <id>sign-artifacts</id>
  426. <phase>verify</phase>
  427. <goals>
  428. <goal>sign</goal>
  429. </goals>
  430. </execution>
  431. </executions>
  432. </plugin>
  433. </plugins>
  434. </build>
  435. </profile>
  436. </profiles>
  437. <build>
  438. <resources>
  439. <resource>
  440. <directory>src/main/resources</directory>
  441. <filtering>true</filtering>
  442. </resource>
  443. </resources>
  444. <extensions>
  445. <extension>
  446. <groupId>kr.motd.maven</groupId>
  447. <artifactId>os-maven-plugin</artifactId>
  448. <version>${os.maven.plugin.version}</version>
  449. </extension>
  450. </extensions>
  451. <plugins>
  452. <plugin>
  453. <groupId>org.sonatype.plugins</groupId>
  454. <artifactId>nexus-staging-maven-plugin</artifactId>
  455. <version>1.6.8</version>
  456. <extensions>true</extensions>
  457. <configuration>
  458. <serverId>ossrh</serverId>
  459. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  460. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  461. </configuration>
  462. </plugin>
  463. <plugin>
  464. <groupId>org.apache.maven.plugins</groupId>
  465. <artifactId>maven-release-plugin</artifactId>
  466. <version>${maven.release.plugin.version}</version>
  467. <configuration>
  468. <autoVersionSubmodules>true</autoVersionSubmodules>
  469. <useReleaseProfile>false</useReleaseProfile>
  470. <releaseProfiles>release</releaseProfiles>
  471. <goals>deploy</goals>
  472. </configuration>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.xolstice.maven.plugins</groupId>
  476. <artifactId>protobuf-maven-plugin</artifactId>
  477. <version>${protobuf.maven.plugin.version}</version>
  478. <configuration>
  479. <protoSourceRoot>src/main/milvus-proto/proto</protoSourceRoot>
  480. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
  481. <pluginId>grpc-java</pluginId>
  482. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  483. </configuration>
  484. <executions>
  485. <execution>
  486. <goals>
  487. <goal>compile</goal>
  488. <goal>compile-custom</goal>
  489. </goals>
  490. </execution>
  491. </executions>
  492. </plugin>
  493. <plugin>
  494. <groupId>org.apache.maven.plugins</groupId>
  495. <artifactId>maven-enforcer-plugin</artifactId>
  496. <version>${maven.enforcer.plugin.version}</version>
  497. <executions>
  498. <execution>
  499. <id>enforce</id>
  500. <configuration>
  501. <rules>
  502. <requireUpperBoundDeps/>
  503. </rules>
  504. </configuration>
  505. <goals>
  506. <goal>enforce</goal>
  507. </goals>
  508. </execution>
  509. </executions>
  510. </plugin>
  511. <!-- JUnit5 tests are not running with maven 3.6.x
  512. https://dzone.com/articles/why-your-junit-5-tests-are-not-running-under-maven
  513. -->
  514. <plugin>
  515. <groupId>org.apache.maven.plugins</groupId>
  516. <artifactId>maven-surefire-plugin</artifactId>
  517. <version>${maven.surefire.plugin.version}</version>
  518. <configuration>
  519. <skipTests>false</skipTests>
  520. </configuration>
  521. <dependencies>
  522. <dependency>
  523. <groupId>org.junit.platform</groupId>
  524. <artifactId>junit-platform-surefire-provider</artifactId>
  525. <version>${junit.platform.version}</version>
  526. </dependency>
  527. <dependency>
  528. <groupId>org.junit.jupiter</groupId>
  529. <artifactId>junit-jupiter-engine</artifactId>
  530. <version>${junit.jupiter.engine.version}</version>
  531. </dependency>
  532. </dependencies>
  533. </plugin>
  534. </plugins>
  535. </build>
  536. </project>