pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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</artifactId>
  26. <version>2.3.4</version>
  27. <packaging>jar</packaging>
  28. <name>io.milvus:milvus-sdk-java</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. <scm>
  47. <connection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</connection>
  48. <developerConnection>scm:git:https://github.com/milvus-io/milvus-sdk-java.git</developerConnection>
  49. <url>https://github.com/milvus-io/milvus-sdk-java</url>
  50. </scm>
  51. <distributionManagement>
  52. <snapshotRepository>
  53. <id>ossrh</id>
  54. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  55. </snapshotRepository>
  56. </distributionManagement>
  57. <properties>
  58. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  59. <grpc.version>1.59.1</grpc.version>
  60. <protobuf.version>3.24.0</protobuf.version>
  61. <protoc.version>3.24.0</protoc.version>
  62. <commons-collections4.version>4.3</commons-collections4.version>
  63. <maven.compiler.source>1.8</maven.compiler.source>
  64. <maven.compiler.target>1.8</maven.compiler.target>
  65. <versio.maven.deploy.plugin>2.8.2</versio.maven.deploy.plugin>
  66. <versio.maven.source.plugin>3.2.1</versio.maven.source.plugin>
  67. <javax.annotation.version>1.2</javax.annotation.version>
  68. <commons.text.version>1.10.0</commons.text.version>
  69. <slf4j.api.version>1.7.30</slf4j.api.version>
  70. <log4j.slf4j.version>2.17.1</log4j.slf4j.version>
  71. <junit.version>4.13.2</junit.version>
  72. <junit.jupiter.version>5.10.1</junit.jupiter.version>
  73. <lombok.version>1.18.22</lombok.version>
  74. <okhttp.version>4.10.0</okhttp.version>
  75. <plexus.version>3.0.24</plexus.version>
  76. <maven.source.plugin.version>3.1.0</maven.source.plugin.version>
  77. <maven.javadoc.plugin.version>3.1.1</maven.javadoc.plugin.version>
  78. <os.maven.plugin.version>1.6.2</os.maven.plugin.version>
  79. <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
  80. <protobuf.maven.plugin.version>0.6.1</protobuf.maven.plugin.version>
  81. <maven.enforcer.plugin.version>3.0.0-M2</maven.enforcer.plugin.version>
  82. <maven.surefire.plugin.version>2.19.1</maven.surefire.plugin.version>
  83. <junit.platform.version>1.1.0</junit.platform.version>
  84. <junit.jupiter.engine.version>5.10.1</junit.jupiter.engine.version>
  85. <jackson.version>2.12.7.1</jackson.version>
  86. <gson.version>2.10.1</gson.version>
  87. <kotlin.version>1.6.20</kotlin.version>
  88. <version.fastjson>1.2.83</version.fastjson>
  89. <mockito.version>5.8.0</mockito.version>
  90. </properties>
  91. <dependencyManagement>
  92. <dependencies>
  93. <dependency>
  94. <groupId>io.grpc</groupId>
  95. <artifactId>grpc-bom</artifactId>
  96. <version>${grpc.version}</version>
  97. <type>pom</type>
  98. <scope>import</scope>
  99. </dependency>
  100. </dependencies>
  101. </dependencyManagement>
  102. <dependencies>
  103. <dependency>
  104. <groupId>org.mockito</groupId>
  105. <artifactId>mockito-core</artifactId>
  106. <version>${mockito.version}</version>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.mockito</groupId>
  111. <artifactId>mockito-junit-jupiter</artifactId>
  112. <version>${mockito.version}</version>
  113. <scope>test</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>io.grpc</groupId>
  117. <artifactId>grpc-netty-shaded</artifactId>
  118. <version>${grpc.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>io.grpc</groupId>
  122. <artifactId>grpc-protobuf</artifactId>
  123. <version>${grpc.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>io.grpc</groupId>
  127. <artifactId>grpc-stub</artifactId>
  128. <version>${grpc.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>javax.annotation</groupId>
  132. <artifactId>javax.annotation-api</artifactId>
  133. <version>${javax.annotation.version}</version>
  134. <scope>provided</scope> <!-- not needed at runtime -->
  135. </dependency>
  136. <dependency>
  137. <groupId>io.grpc</groupId>
  138. <artifactId>grpc-testing</artifactId>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.google.protobuf</groupId>
  143. <artifactId>protobuf-java</artifactId>
  144. <version>${protobuf.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.commons</groupId>
  148. <artifactId>commons-text</artifactId>
  149. <version>${commons.text.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.commons</groupId>
  153. <artifactId>commons-collections4</artifactId>
  154. <version>${commons-collections4.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>com.fasterxml.jackson.core</groupId>
  158. <artifactId>jackson-databind</artifactId>
  159. <version>${jackson.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.slf4j</groupId>
  163. <artifactId>slf4j-api</artifactId>
  164. <version>${slf4j.api.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.apache.logging.log4j</groupId>
  168. <artifactId>log4j-slf4j-impl</artifactId>
  169. <version>${log4j.slf4j.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>junit</groupId>
  173. <artifactId>junit</artifactId>
  174. <version>${junit.version}</version>
  175. <scope>test</scope>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.junit.jupiter</groupId>
  179. <artifactId>junit-jupiter-api</artifactId>
  180. <version>${junit.jupiter.version}</version>
  181. <scope>test</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.projectlombok</groupId>
  185. <artifactId>lombok</artifactId>
  186. <version>${lombok.version}</version>
  187. <scope>provided</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>com.squareup.okhttp3</groupId>
  191. <artifactId>okhttp</artifactId>
  192. <version>${okhttp.version}</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.codehaus.plexus</groupId>
  196. <artifactId>plexus-utils</artifactId>
  197. <version>${plexus.version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>com.google.code.gson</groupId>
  201. <artifactId>gson</artifactId>
  202. <version>${gson.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.jetbrains.kotlin</groupId>
  206. <artifactId>kotlin-stdlib</artifactId>
  207. <version>${kotlin.version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.alibaba</groupId>
  211. <artifactId>fastjson</artifactId>
  212. <version>${version.fastjson}</version>
  213. </dependency>
  214. </dependencies>
  215. <profiles>
  216. <profile>
  217. <id>release</id>
  218. <build>
  219. <plugins>
  220. <plugin>
  221. <groupId>org.apache.maven.plugins</groupId>
  222. <artifactId>maven-source-plugin</artifactId>
  223. <version>${maven.source.plugin.version}</version>
  224. <executions>
  225. <execution>
  226. <id>attach-sources</id>
  227. <goals>
  228. <goal>jar-no-fork</goal>
  229. </goals>
  230. </execution>
  231. </executions>
  232. </plugin>
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-javadoc-plugin</artifactId>
  236. <version>${maven.javadoc.plugin.version}</version>
  237. <configuration>
  238. <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
  239. </configuration>
  240. <executions>
  241. <execution>
  242. <id>attach-javadocs</id>
  243. <goals>
  244. <goal>jar</goal>
  245. </goals>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-gpg-plugin</artifactId>
  252. <version>1.6</version>
  253. <executions>
  254. <execution>
  255. <id>sign-artifacts</id>
  256. <phase>verify</phase>
  257. <goals>
  258. <goal>sign</goal>
  259. </goals>
  260. </execution>
  261. </executions>
  262. </plugin>
  263. </plugins>
  264. </build>
  265. </profile>
  266. </profiles>
  267. <build>
  268. <resources>
  269. <resource>
  270. <directory>src/main/resources</directory>
  271. <filtering>true</filtering>
  272. </resource>
  273. </resources>
  274. <extensions>
  275. <extension>
  276. <groupId>kr.motd.maven</groupId>
  277. <artifactId>os-maven-plugin</artifactId>
  278. <version>${os.maven.plugin.version}</version>
  279. </extension>
  280. </extensions>
  281. <plugins>
  282. <plugin>
  283. <groupId>org.sonatype.plugins</groupId>
  284. <artifactId>nexus-staging-maven-plugin</artifactId>
  285. <version>1.6.8</version>
  286. <extensions>true</extensions>
  287. <configuration>
  288. <serverId>ossrh</serverId>
  289. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  290. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  291. </configuration>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-release-plugin</artifactId>
  296. <version>${maven.release.plugin.version}</version>
  297. <configuration>
  298. <autoVersionSubmodules>true</autoVersionSubmodules>
  299. <useReleaseProfile>false</useReleaseProfile>
  300. <releaseProfiles>release</releaseProfiles>
  301. <goals>deploy</goals>
  302. </configuration>
  303. </plugin>
  304. <plugin>
  305. <groupId>org.xolstice.maven.plugins</groupId>
  306. <artifactId>protobuf-maven-plugin</artifactId>
  307. <version>${protobuf.maven.plugin.version}</version>
  308. <configuration>
  309. <protoSourceRoot>src/main/milvus-proto/proto</protoSourceRoot>
  310. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
  311. <pluginId>grpc-java</pluginId>
  312. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  313. </configuration>
  314. <executions>
  315. <execution>
  316. <goals>
  317. <goal>compile</goal>
  318. <goal>compile-custom</goal>
  319. </goals>
  320. </execution>
  321. </executions>
  322. </plugin>
  323. <plugin>
  324. <groupId>org.apache.maven.plugins</groupId>
  325. <artifactId>maven-enforcer-plugin</artifactId>
  326. <version>${maven.enforcer.plugin.version}</version>
  327. <executions>
  328. <execution>
  329. <id>enforce</id>
  330. <configuration>
  331. <rules>
  332. <requireUpperBoundDeps/>
  333. </rules>
  334. </configuration>
  335. <goals>
  336. <goal>enforce</goal>
  337. </goals>
  338. </execution>
  339. </executions>
  340. </plugin>
  341. <!-- JUnit5 tests are not running with maven 3.6.x
  342. https://dzone.com/articles/why-your-junit-5-tests-are-not-running-under-maven
  343. -->
  344. <plugin>
  345. <groupId>org.apache.maven.plugins</groupId>
  346. <artifactId>maven-surefire-plugin</artifactId>
  347. <version>${maven.surefire.plugin.version}</version>
  348. <configuration>
  349. <skipTests>false</skipTests>
  350. </configuration>
  351. <dependencies>
  352. <dependency>
  353. <groupId>org.junit.platform</groupId>
  354. <artifactId>junit-platform-surefire-provider</artifactId>
  355. <version>${junit.platform.version}</version>
  356. </dependency>
  357. <dependency>
  358. <groupId>org.junit.jupiter</groupId>
  359. <artifactId>junit-jupiter-engine</artifactId>
  360. <version>${junit.jupiter.engine.version}</version>
  361. </dependency>
  362. </dependencies>
  363. </plugin>
  364. </plugins>
  365. </build>
  366. </project>