pom.xml 22 KB

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