pom.xml 15 KB

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