pom.xml 21 KB

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