pom.xml 13 KB

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