pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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.0.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 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. <maven.compiler.source>1.8</maven.compiler.source>
  63. <maven.compiler.target>1.8</maven.compiler.target>
  64. </properties>
  65. <dependencyManagement>
  66. <dependencies>
  67. <dependency>
  68. <groupId>io.grpc</groupId>
  69. <artifactId>grpc-bom</artifactId>
  70. <version>${grpc.version}</version>
  71. <type>pom</type>
  72. <scope>import</scope>
  73. </dependency>
  74. </dependencies>
  75. </dependencyManagement>
  76. <dependencies>
  77. <dependency>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-gpg-plugin</artifactId>
  80. <version>1.6</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.grpc</groupId>
  84. <artifactId>grpc-netty-shaded</artifactId>
  85. <version>${grpc.version}</version>
  86. <scope>runtime</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>io.grpc</groupId>
  90. <artifactId>grpc-protobuf</artifactId>
  91. <version>${grpc.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>io.grpc</groupId>
  95. <artifactId>grpc-stub</artifactId>
  96. <version>${grpc.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>javax.annotation</groupId>
  100. <artifactId>javax.annotation-api</artifactId>
  101. <version>1.2</version>
  102. <scope>provided</scope> <!-- not needed at runtime -->
  103. </dependency>
  104. <dependency>
  105. <groupId>io.grpc</groupId>
  106. <artifactId>grpc-testing</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.google.protobuf</groupId>
  111. <artifactId>protobuf-java-util</artifactId>
  112. <version>${protobuf.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.apache.commons</groupId>
  116. <artifactId>commons-text</artifactId>
  117. <version>1.6</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.json</groupId>
  121. <artifactId>json</artifactId>
  122. <version>20190722</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.slf4j</groupId>
  126. <artifactId>slf4j-api</artifactId>
  127. <version>1.7.30</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.logging.log4j</groupId>
  131. <artifactId>log4j-slf4j-impl</artifactId>
  132. <version>2.12.1</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.testcontainers</groupId>
  136. <artifactId>testcontainers</artifactId>
  137. <version>1.14.3</version>
  138. <scope>test</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.testcontainers</groupId>
  142. <artifactId>junit-jupiter</artifactId>
  143. <version>1.14.3</version>
  144. <scope>test</scope>
  145. </dependency>
  146. </dependencies>
  147. <profiles>
  148. <profile>
  149. <id>release</id>
  150. <build>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-source-plugin</artifactId>
  155. <version>3.1.0</version>
  156. <executions>
  157. <execution>
  158. <id>attach-sources</id>
  159. <goals>
  160. <goal>jar-no-fork</goal>
  161. </goals>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-javadoc-plugin</artifactId>
  168. <version>3.1.1</version>
  169. <configuration>
  170. <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
  171. </configuration>
  172. <executions>
  173. <execution>
  174. <id>attach-javadocs</id>
  175. <goals>
  176. <goal>jar</goal>
  177. </goals>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-gpg-plugin</artifactId>
  184. <version>1.6</version>
  185. <executions>
  186. <execution>
  187. <id>sign-artifacts</id>
  188. <phase>verify</phase>
  189. <goals>
  190. <goal>sign</goal>
  191. </goals>
  192. </execution>
  193. </executions>
  194. </plugin>
  195. </plugins>
  196. </build>
  197. </profile>
  198. </profiles>
  199. <build>
  200. <resources>
  201. <resource>
  202. <directory>src/main/resources</directory>
  203. <filtering>true</filtering>
  204. </resource>
  205. </resources>
  206. <extensions>
  207. <extension>
  208. <groupId>kr.motd.maven</groupId>
  209. <artifactId>os-maven-plugin</artifactId>
  210. <version>1.6.2</version>
  211. </extension>
  212. </extensions>
  213. <plugins>
  214. <plugin>
  215. <groupId>org.sonatype.plugins</groupId>
  216. <artifactId>nexus-staging-maven-plugin</artifactId>
  217. <version>1.6.8</version>
  218. <extensions>true</extensions>
  219. <configuration>
  220. <serverId>ossrh</serverId>
  221. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  222. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  223. </configuration>
  224. </plugin>
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-release-plugin</artifactId>
  228. <version>2.5.3</version>
  229. <configuration>
  230. <autoVersionSubmodules>true</autoVersionSubmodules>
  231. <useReleaseProfile>false</useReleaseProfile>
  232. <releaseProfiles>release</releaseProfiles>
  233. <goals>deploy</goals>
  234. </configuration>
  235. </plugin>
  236. <plugin>
  237. <groupId>org.xolstice.maven.plugins</groupId>
  238. <artifactId>protobuf-maven-plugin</artifactId>
  239. <version>0.6.1</version>
  240. <configuration>
  241. <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
  242. <pluginId>grpc-java</pluginId>
  243. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  244. </configuration>
  245. <executions>
  246. <execution>
  247. <goals>
  248. <goal>compile</goal>
  249. <goal>compile-custom</goal>
  250. </goals>
  251. </execution>
  252. </executions>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-enforcer-plugin</artifactId>
  257. <version>3.0.0-M2</version>
  258. <executions>
  259. <execution>
  260. <id>enforce</id>
  261. <configuration>
  262. <rules>
  263. <requireUpperBoundDeps/>
  264. </rules>
  265. </configuration>
  266. <goals>
  267. <goal>enforce</goal>
  268. </goals>
  269. </execution>
  270. </executions>
  271. </plugin>
  272. <!-- JUnit5 tests are not running with maven 3.6.x
  273. https://dzone.com/articles/why-your-junit-5-tests-are-not-running-under-maven
  274. -->
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-surefire-plugin</artifactId>
  278. <version>2.19.1</version>
  279. <configuration>
  280. <skipTests>true</skipTests>
  281. </configuration>
  282. <dependencies>
  283. <dependency>
  284. <groupId>org.junit.platform</groupId>
  285. <artifactId>junit-platform-surefire-provider</artifactId>
  286. <version>1.1.0</version>
  287. </dependency>
  288. <dependency>
  289. <groupId>org.junit.jupiter</groupId>
  290. <artifactId>junit-jupiter-engine</artifactId>
  291. <version>5.1.0</version>
  292. </dependency>
  293. </dependencies>
  294. </plugin>
  295. </plugins>
  296. </build>
  297. </project>