pom.xml 12 KB

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