pom.xml.deploy 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.github.chrislusf</groupId>
  6. <artifactId>seaweedfs-client</artifactId>
  7. <version>1.6.6</version>
  8. <parent>
  9. <groupId>org.sonatype.oss</groupId>
  10. <artifactId>oss-parent</artifactId>
  11. <version>9</version>
  12. </parent>
  13. <properties>
  14. <protobuf.version>3.9.1</protobuf.version>
  15. <!-- follow https://github.com/grpc/grpc-java -->
  16. <grpc.version>1.23.0</grpc.version>
  17. <guava.version>28.0-jre</guava.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>com.moandjiezana.toml</groupId>
  22. <artifactId>toml4j</artifactId>
  23. <version>0.7.2</version>
  24. </dependency>
  25. <!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
  26. <dependency>
  27. <groupId>com.google.protobuf</groupId>
  28. <artifactId>protobuf-java</artifactId>
  29. <version>${protobuf.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.google.guava</groupId>
  33. <artifactId>guava</artifactId>
  34. <version>${guava.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>io.grpc</groupId>
  38. <artifactId>grpc-netty-shaded</artifactId>
  39. <version>${grpc.version}</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>io.grpc</groupId>
  43. <artifactId>grpc-protobuf</artifactId>
  44. <version>${grpc.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>io.grpc</groupId>
  48. <artifactId>grpc-stub</artifactId>
  49. <version>${grpc.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.slf4j</groupId>
  53. <artifactId>slf4j-api</artifactId>
  54. <version>1.7.25</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.httpcomponents</groupId>
  58. <artifactId>httpmime</artifactId>
  59. <version>4.5.6</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>junit</groupId>
  63. <artifactId>junit</artifactId>
  64. <version>4.12</version>
  65. <scope>test</scope>
  66. </dependency>
  67. </dependencies>
  68. <distributionManagement>
  69. <snapshotRepository>
  70. <id>ossrh</id>
  71. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  72. </snapshotRepository>
  73. </distributionManagement>
  74. <build>
  75. <extensions>
  76. <extension>
  77. <groupId>kr.motd.maven</groupId>
  78. <artifactId>os-maven-plugin</artifactId>
  79. <version>1.6.2</version>
  80. </extension>
  81. </extensions>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-compiler-plugin</artifactId>
  86. <configuration>
  87. <source>8</source>
  88. <target>8</target>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.xolstice.maven.plugins</groupId>
  93. <artifactId>protobuf-maven-plugin</artifactId>
  94. <version>0.6.1</version>
  95. <configuration>
  96. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  97. </protocArtifact>
  98. <pluginId>grpc-java</pluginId>
  99. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
  100. </pluginArtifact>
  101. </configuration>
  102. <executions>
  103. <execution>
  104. <goals>
  105. <goal>compile</goal>
  106. <goal>compile-custom</goal>
  107. </goals>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-gpg-plugin</artifactId>
  114. <version>1.5</version>
  115. <executions>
  116. <execution>
  117. <id>sign-artifacts</id>
  118. <phase>verify</phase>
  119. <goals>
  120. <goal>sign</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.sonatype.plugins</groupId>
  127. <artifactId>nexus-staging-maven-plugin</artifactId>
  128. <version>1.6.7</version>
  129. <extensions>true</extensions>
  130. <configuration>
  131. <serverId>ossrh</serverId>
  132. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  133. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  134. </configuration>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-source-plugin</artifactId>
  139. <version>2.2.1</version>
  140. <executions>
  141. <execution>
  142. <id>attach-sources</id>
  143. <goals>
  144. <goal>jar-no-fork</goal>
  145. </goals>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-javadoc-plugin</artifactId>
  152. <version>2.9.1</version>
  153. <executions>
  154. <execution>
  155. <id>attach-javadocs</id>
  156. <goals>
  157. <goal>jar</goal>
  158. </goals>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. </plugins>
  163. </build>
  164. </project>