pom.xml 13 KB

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