pom.xml 14 KB

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