pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <!-- Spring Boot 父级依赖 -->
  7. <parent>
  8. <groupId>cn.sikey.cloud</groupId>
  9. <artifactId>sikey-pay-business</artifactId>
  10. <version>2.3.0-SNAPSHOT</version>
  11. </parent>
  12. <artifactId>sikey-pay-business-biz</artifactId>
  13. <version>2.3.0-SNAPSHOT</version>
  14. <packaging>jar</packaging>
  15. <name>${project.artifactId}</name>
  16. <description>
  17. sikey-pay-biz
  18. </description>
  19. <dependencies>
  20. <!-- 依赖服务 -->
  21. <dependency>
  22. <groupId>cn.sikey.cloud</groupId>
  23. <artifactId>sikey-pay-business-api</artifactId>
  24. <version>${revision}</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>cn.sikey.cloud</groupId>
  28. <artifactId>sikey-order-business-api</artifactId>
  29. <version>${revision}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>cn.sikey.cloud</groupId>
  33. <artifactId>sikey-hmd-business-api</artifactId>
  34. <version>${revision}</version>
  35. </dependency>
  36. <!-- Web 开发基础依赖 -->
  37. <dependency>
  38. <groupId>cn.sikey.cloud</groupId>
  39. <artifactId>sikey-spring-boot-starter-web</artifactId>
  40. </dependency>
  41. <!-- Spring Cloud Consul 配置中心 -->
  42. <dependency>
  43. <groupId>org.springframework.cloud</groupId>
  44. <artifactId>spring-cloud-starter-consul-config</artifactId>
  45. </dependency>
  46. <!-- Spring Cloud Consul 服务发现 -->
  47. <dependency>
  48. <groupId>org.springframework.cloud</groupId>
  49. <artifactId>spring-cloud-starter-consul-discovery</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.projectlombok</groupId>
  53. <artifactId>lombok</artifactId>
  54. <scope>provided</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.mapstruct</groupId>
  58. <artifactId>mapstruct</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.mapstruct</groupId>
  62. <artifactId>mapstruct-jdk8</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.mapstruct</groupId>
  66. <artifactId>mapstruct-processor</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.skywalking</groupId>
  70. <artifactId>apm-toolkit-trace</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.apache.skywalking</groupId>
  74. <artifactId>apm-toolkit-logback-1.x</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.apache.skywalking</groupId>
  78. <artifactId>apm-toolkit-opentracing</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>io.opentracing</groupId>
  82. <artifactId>opentracing-api</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>io.opentracing</groupId>
  86. <artifactId>opentracing-util</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>io.opentracing</groupId>
  90. <artifactId>opentracing-noop</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.squareup.okhttp3</groupId>
  94. <artifactId>okhttp</artifactId>
  95. </dependency>
  96. <!-- Hutool 核心库 -->
  97. <dependency>
  98. <groupId>cn.hutool</groupId>
  99. <artifactId>hutool-all</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>cn.hutool</groupId>
  103. <artifactId>hutool-core</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.alipay.sdk</groupId>
  107. <artifactId>alipay-sdk-java-v3</artifactId>
  108. </dependency>
  109. <!-- 微信支付 SDK(排除所有日志库) -->
  110. <dependency>
  111. <groupId>com.github.wechatpay-apiv3</groupId>
  112. <artifactId>wechatpay-java-core</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>ch.qos.logback</groupId>
  116. <artifactId>logback-core</artifactId>
  117. <version>1.5.12</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>ch.qos.logback</groupId>
  121. <artifactId>logback-classic</artifactId>
  122. <version>1.5.12</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.slf4j</groupId>
  126. <artifactId>slf4j-api</artifactId>
  127. <version>2.0.16</version>
  128. </dependency>
  129. <!-- 显式添加 Gson -->
  130. <dependency>
  131. <groupId>com.google.code.gson</groupId>
  132. <artifactId>gson</artifactId>
  133. </dependency>
  134. <!-- RPC 远程调用相关 -->
  135. <dependency>
  136. <groupId>org.springframework.cloud</groupId>
  137. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.springframework.cloud</groupId>
  141. <artifactId>spring-cloud-starter-openfeign</artifactId>
  142. </dependency>
  143. <dependency>
  144. <groupId>io.github.openfeign</groupId>
  145. <artifactId>feign-okhttp</artifactId>
  146. </dependency>
  147. <dependency>
  148. <groupId>com.razorpay</groupId>
  149. <artifactId>razorpay-java</artifactId>
  150. </dependency>
  151. </dependencies>
  152. <repositories>
  153. <!--<repository>
  154. <id>nexus-snapshots</id> &lt;!&ndash; 关键:此 ID 必须与 settings.xml 中的 <server> 的 <id> 一致 &ndash;&gt;
  155. <url>http://106.75.230.4:18081/repository/maven-public/</url>
  156. </repository>
  157. <repository>
  158. <id>nexus-releases</id> &lt;!&ndash; 关键:此 ID 必须与 settings.xml 中的 <server> 的 <id> 一致 &ndash;&gt;
  159. <url>http://106.75.230.4:18081/repository/maven-public/</url>
  160. </repository>-->
  161. <!--<repository>
  162. <id>sikey-group</id>
  163. <url>http://106.75.230.4:18081/repository/sikey-group/</url>
  164. <snapshots>
  165. <enabled>true</enabled>
  166. </snapshots>
  167. <releases>
  168. <enabled>true</enabled>
  169. </releases>
  170. </repository>-->
  171. </repositories>
  172. <build>
  173. <!-- 设置构建的 jar 包名 -->
  174. <finalName>${project.artifactId}</finalName>
  175. <pluginManagement>
  176. <plugins>
  177. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  178. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-surefire-plugin</artifactId>
  182. <version>${maven-surefire-plugin.version}</version>
  183. </plugin>
  184. <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
  185. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  186. <plugin>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-compiler-plugin</artifactId>
  189. <version>${maven-compiler-plugin.version}</version>
  190. <configuration>
  191. <annotationProcessorPaths>
  192. <path>
  193. <groupId>org.springframework.boot</groupId>
  194. <artifactId>spring-boot-configuration-processor</artifactId>
  195. <version>${spring.boot.version}</version>
  196. </path>
  197. <path>
  198. <groupId>org.projectlombok</groupId>
  199. <artifactId>lombok</artifactId>
  200. <version>${lombok.version}</version>
  201. </path>
  202. <path>
  203. <groupId>org.mapstruct</groupId>
  204. <artifactId>mapstruct-processor</artifactId>
  205. <version>${mapstruct.version}</version>
  206. </path>
  207. </annotationProcessorPaths>
  208. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  209. <debug>false</debug>
  210. <compilerArgs>
  211. <arg>-parameters</arg>
  212. </compilerArgs>
  213. </configuration>
  214. </plugin>
  215. </plugins>
  216. </pluginManagement>
  217. <plugins>
  218. <!-- 统一 revision 版本 -->
  219. <plugin>
  220. <groupId>org.codehaus.mojo</groupId>
  221. <artifactId>flatten-maven-plugin</artifactId>
  222. <version>${flatten-maven-plugin.version}</version>
  223. <configuration>
  224. <flattenMode>oss</flattenMode>
  225. <updatePomFile>true</updatePomFile>
  226. </configuration>
  227. <executions>
  228. <execution>
  229. <goals>
  230. <goal>flatten</goal>
  231. </goals>
  232. <id>flatten</id>
  233. <phase>process-resources</phase>
  234. </execution>
  235. <execution>
  236. <goals>
  237. <goal>clean</goal>
  238. </goals>
  239. <id>flatten.clean</id>
  240. <phase>clean</phase>
  241. </execution>
  242. </executions>
  243. </plugin>
  244. <!-- 关键:添加 spring-boot-maven-plugin -->
  245. <plugin>
  246. <groupId>org.springframework.boot</groupId>
  247. <artifactId>spring-boot-maven-plugin</artifactId>
  248. <version>${spring.boot.version}</version>
  249. <executions>
  250. <execution>
  251. <goals>
  252. <goal>repackage</goal>
  253. </goals>
  254. </execution>
  255. </executions>
  256. </plugin>
  257. </plugins>
  258. <resources>
  259. <resource>
  260. <directory>src/main/resources</directory>
  261. <includes>
  262. <include>**/*.*</include> <!-- 包含 PEM 文件 -->
  263. </includes>
  264. </resource>
  265. </resources>
  266. </build>
  267. </project>