pom.xml 13 KB

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