pom.xml 14 KB

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