pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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-parent</artifactId>
  26. <version>${revision}</version>
  27. <packaging>pom</packaging>
  28. <name>${project.artifactId}</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. <modules>
  47. <module>sdk-core</module>
  48. <module>sdk-bulkwriter</module>
  49. </modules>
  50. <scm>
  51. <connection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</connection>
  52. <developerConnection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</developerConnection>
  53. <url>https://github.com/milvus-io/milvus-sdk-java</url>
  54. </scm>
  55. <distributionManagement>
  56. <snapshotRepository>
  57. <id>central</id>
  58. <url>https://central.sonatype.com/repository/maven-snapshots/</url>
  59. </snapshotRepository>
  60. </distributionManagement>
  61. <repositories>
  62. <repository>
  63. <name>Central Portal Snapshots</name>
  64. <id>central-portal-snapshots</id>
  65. <url>https://central.sonatype.com/repository/maven-snapshots/</url>
  66. <releases>
  67. <enabled>false</enabled>
  68. </releases>
  69. <snapshots>
  70. <enabled>true</enabled>
  71. </snapshots>
  72. </repository>
  73. </repositories>
  74. <properties>
  75. <revision>2.6.7</revision>
  76. <maven.compiler.source>8</maven.compiler.source>
  77. <maven.compiler.target>8</maven.compiler.target>
  78. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  79. <skip.maven.deploy>false</skip.maven.deploy>
  80. <!--for Core-->
  81. <grpc.version>1.59.1</grpc.version>
  82. <protobuf.version>3.25.5</protobuf.version>
  83. <protoc.version>3.25.5</protoc.version>
  84. <commons-collections4.version>4.3</commons-collections4.version>
  85. <versio.maven.deploy.plugin>2.8.2</versio.maven.deploy.plugin>
  86. <versio.maven.source.plugin>3.2.1</versio.maven.source.plugin>
  87. <javax.annotation.version>1.2</javax.annotation.version>
  88. <commons.text.version>1.10.0</commons.text.version>
  89. <slf4j.api.version>1.7.36</slf4j.api.version>
  90. <junit.version>4.13.2</junit.version>
  91. <junit.jupiter.version>5.10.1</junit.jupiter.version>
  92. <okhttp.version>4.12.0</okhttp.version>
  93. <maven.source.plugin.version>3.1.0</maven.source.plugin.version>
  94. <maven.javadoc.plugin.version>3.7.0</maven.javadoc.plugin.version>
  95. <os.maven.plugin.version>1.6.2</os.maven.plugin.version>
  96. <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
  97. <protobuf.maven.plugin.version>0.6.1</protobuf.maven.plugin.version>
  98. <maven.enforcer.plugin.version>3.0.0-M2</maven.enforcer.plugin.version>
  99. <maven.surefire.plugin.version>2.19.1</maven.surefire.plugin.version>
  100. <maven.flatten.plugin.version>1.6.0</maven.flatten.plugin.version>
  101. <maven.deploy.plugin.version>3.1.3</maven.deploy.plugin.version>
  102. <junit.platform.version>1.1.0</junit.platform.version>
  103. <junit.jupiter.engine.version>5.10.1</junit.jupiter.engine.version>
  104. <gson.version>2.13.1</gson.version>
  105. <kotlin.version>1.9.10</kotlin.version>
  106. <mockito.version>4.11.0</mockito.version>
  107. <testcontainers.version>1.19.8</testcontainers.version>
  108. <apache.commons.pool2.version>2.12.0</apache.commons.pool2.version>
  109. <guava.version>32.1.3-jre</guava.version>
  110. <errorprone.version>2.38.0</errorprone.version>
  111. <!--for BulkWriter-->
  112. <plexus.version>3.0.24</plexus.version>
  113. <hadoop.version>3.3.6</hadoop.version>
  114. <hbase.version>1.2.0</hbase.version>
  115. <parquet.version>1.13.1</parquet.version>
  116. <unirest.version>3.13.10</unirest.version>
  117. <snappy.version>1.1.10.5</snappy.version>
  118. <aws-java-sdk-s3.version>1.12.687</aws-java-sdk-s3.version>
  119. <minio-java-sdk.veresion>8.5.7</minio-java-sdk.veresion>
  120. <azure-java-blob-sdk.version>12.25.3</azure-java-blob-sdk.version>
  121. <azure-java-identity-sdk.version>1.10.1</azure-java-identity-sdk.version>
  122. </properties>
  123. <profiles>
  124. <profile>
  125. <id>release</id>
  126. <build>
  127. <plugins>
  128. <plugin>
  129. <groupId>org.apache.maven.plugins</groupId>
  130. <artifactId>maven-source-plugin</artifactId>
  131. <version>${maven.source.plugin.version}</version>
  132. <executions>
  133. <execution>
  134. <id>attach-sources</id>
  135. <goals>
  136. <goal>jar-no-fork</goal>
  137. </goals>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-javadoc-plugin</artifactId>
  144. <version>${maven.javadoc.plugin.version}</version>
  145. <configuration>
  146. <javadocExecutable>/usr/bin/javadoc</javadocExecutable>
  147. <!-- <additionalOptions>-Xdoclint:none</additionalOptions>-->
  148. <additionalJOption>-Xdoclint:none</additionalJOption>
  149. </configuration>
  150. <executions>
  151. <execution>
  152. <id>attach-javadocs</id>
  153. <goals>
  154. <goal>jar</goal>
  155. </goals>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.apache.maven.plugins</groupId>
  161. <artifactId>maven-gpg-plugin</artifactId>
  162. <version>1.6</version>
  163. <executions>
  164. <execution>
  165. <id>sign-artifacts</id>
  166. <phase>verify</phase>
  167. <goals>
  168. <goal>sign</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. </plugins>
  174. </build>
  175. </profile>
  176. </profiles>
  177. <build>
  178. <resources>
  179. <resource>
  180. <directory>src/main/resources</directory>
  181. <filtering>true</filtering>
  182. </resource>
  183. </resources>
  184. <extensions>
  185. <extension>
  186. <groupId>kr.motd.maven</groupId>
  187. <artifactId>os-maven-plugin</artifactId>
  188. <version>${os.maven.plugin.version}</version>
  189. </extension>
  190. </extensions>
  191. <plugins>
  192. <plugin>
  193. <groupId>org.sonatype.central</groupId>
  194. <artifactId>central-publishing-maven-plugin</artifactId>
  195. <version>0.8.0</version>
  196. <extensions>true</extensions>
  197. <configuration>
  198. <publishingServerId>central</publishingServerId>
  199. <autoPublish>true</autoPublish>
  200. </configuration>
  201. </plugin>
  202. <plugin>
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-release-plugin</artifactId>
  205. <version>${maven.release.plugin.version}</version>
  206. <configuration>
  207. <autoVersionSubmodules>true</autoVersionSubmodules>
  208. <useReleaseProfile>false</useReleaseProfile>
  209. <releaseProfiles>release</releaseProfiles>
  210. <goals>deploy</goals>
  211. </configuration>
  212. </plugin>
  213. <plugin>
  214. <groupId>org.xolstice.maven.plugins</groupId>
  215. <artifactId>protobuf-maven-plugin</artifactId>
  216. <version>${protobuf.maven.plugin.version}</version>
  217. <configuration>
  218. <protoSourceRoot>src/main/milvus-proto/proto</protoSourceRoot>
  219. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
  220. <pluginId>grpc-java</pluginId>
  221. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  222. </configuration>
  223. <executions>
  224. <execution>
  225. <goals>
  226. <goal>compile</goal>
  227. <goal>compile-custom</goal>
  228. </goals>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-enforcer-plugin</artifactId>
  235. <version>${maven.enforcer.plugin.version}</version>
  236. <executions>
  237. <execution>
  238. <id>enforce</id>
  239. <configuration>
  240. <rules>
  241. <requireUpperBoundDeps/>
  242. </rules>
  243. </configuration>
  244. <goals>
  245. <goal>enforce</goal>
  246. </goals>
  247. </execution>
  248. </executions>
  249. </plugin>
  250. <!-- JUnit5 tests are not running with maven 3.6.x
  251. https://dzone.com/articles/why-your-junit-5-tests-are-not-running-under-maven
  252. -->
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-surefire-plugin</artifactId>
  256. <version>${maven.surefire.plugin.version}</version>
  257. <configuration>
  258. <skipTests>false</skipTests>
  259. </configuration>
  260. <dependencies>
  261. <dependency>
  262. <groupId>org.junit.platform</groupId>
  263. <artifactId>junit-platform-surefire-provider</artifactId>
  264. <version>${junit.platform.version}</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.junit.jupiter</groupId>
  268. <artifactId>junit-jupiter-engine</artifactId>
  269. <version>${junit.jupiter.engine.version}</version>
  270. </dependency>
  271. </dependencies>
  272. </plugin>
  273. <plugin>
  274. <groupId>org.codehaus.mojo</groupId>
  275. <artifactId>flatten-maven-plugin</artifactId>
  276. <version>${maven.flatten.plugin.version}</version>
  277. <configuration>
  278. <updatePomFile>true</updatePomFile>
  279. <flattenMode>oss</flattenMode>
  280. </configuration>
  281. <executions>
  282. <execution>
  283. <id>flatten</id>
  284. <goals>
  285. <goal>flatten</goal>
  286. </goals>
  287. <phase>process-resources</phase>
  288. </execution>
  289. <execution>
  290. <id>flatten.clean</id>
  291. <goals>
  292. <goal>clean</goal>
  293. </goals>
  294. <phase>clean</phase>
  295. </execution>
  296. </executions>
  297. </plugin>
  298. <plugin>
  299. <groupId>org.apache.maven.plugins</groupId>
  300. <artifactId>maven-deploy-plugin</artifactId>
  301. <version>${maven.deploy.plugin.version}</version>
  302. <configuration>
  303. <skip>${skip.maven.deploy}</skip>
  304. </configuration>
  305. </plugin>
  306. </plugins>
  307. </build>
  308. </project>