pom.xml 13 KB

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