pom.xml 11 KB

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