pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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-hmd-business</artifactId>
  10. <version>2.3.0-SNAPSHOT</version>
  11. </parent>
  12. <artifactId>sikey-hmd-business-biz</artifactId>
  13. <version>2.3.0-SNAPSHOT</version>
  14. <packaging>jar</packaging>
  15. <name>${project.artifactId}</name>
  16. <description>
  17. sikey-hmd-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>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.alipay.sdk</groupId>
  111. <artifactId>alipay-sdk-java-v3</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.github.wechatpay-apiv3</groupId>
  115. <artifactId>wechatpay-java</artifactId>
  116. </dependency>
  117. <!-- 微信支付 SDK(排除所有日志库) -->
  118. <dependency>
  119. <groupId>com.github.wechatpay-apiv3</groupId>
  120. <artifactId>wechatpay-java-core</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>ch.qos.logback</groupId>
  124. <artifactId>logback-core</artifactId>
  125. <version>1.5.12</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>ch.qos.logback</groupId>
  129. <artifactId>logback-classic</artifactId>
  130. <version>1.5.12</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.slf4j</groupId>
  134. <artifactId>slf4j-api</artifactId>
  135. <version>2.0.16</version>
  136. </dependency>
  137. <!-- 显式添加 Gson -->
  138. <dependency>
  139. <groupId>com.google.code.gson</groupId>
  140. <artifactId>gson</artifactId>
  141. </dependency>
  142. <!-- DB 相关 -->
  143. <dependency>
  144. <groupId>cn.sikey.cloud</groupId>
  145. <artifactId>sikey-spring-boot-starter-mybatis</artifactId>
  146. </dependency>
  147. <!-- Redis 相关 -->
  148. <dependency>
  149. <groupId>cn.sikey.cloud</groupId>
  150. <artifactId>sikey-spring-boot-starter-redis</artifactId>
  151. </dependency>
  152. <!-- RPC 远程调用相关 -->
  153. <dependency>
  154. <groupId>org.springframework.cloud</groupId>
  155. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.springframework.cloud</groupId>
  159. <artifactId>spring-cloud-starter-openfeign</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>io.github.openfeign</groupId>
  163. <artifactId>feign-okhttp</artifactId>
  164. </dependency>
  165. <!--<dependency>
  166. <groupId>org.apache.tomcat.embed</groupId>
  167. <artifactId>tomcat-embed-core</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>commons-codec</groupId>
  171. <artifactId>commons-codec</artifactId>
  172. <version>1.15</version>
  173. </dependency>-->
  174. <!--<dependency>
  175. <groupId>org.springframework.boot</groupId>
  176. <artifactId>spring-boot-starter-security</artifactId>
  177. <version>${security.version}</version>
  178. </dependency>-->
  179. </dependencies>
  180. <repositories>
  181. <!--<repository>
  182. <id>nexus-snapshots</id> &lt;!&ndash; 关键:此 ID 必须与 settings.xml 中的 <server> 的 <id> 一致 &ndash;&gt;
  183. <url>http://106.75.230.4:18081/repository/maven-public/</url>
  184. </repository>
  185. <repository>
  186. <id>nexus-releases</id> &lt;!&ndash; 关键:此 ID 必须与 settings.xml 中的 <server> 的 <id> 一致 &ndash;&gt;
  187. <url>http://106.75.230.4:18081/repository/maven-public/</url>
  188. </repository>-->
  189. <!--<repository>
  190. <id>sikey-group</id>
  191. <url>http://106.75.230.4:18081/repository/sikey-group/</url>
  192. <snapshots>
  193. <enabled>true</enabled>
  194. </snapshots>
  195. <releases>
  196. <enabled>true</enabled>
  197. </releases>
  198. </repository>-->
  199. </repositories>
  200. <build>
  201. <!-- 设置构建的 jar 包名 -->
  202. <finalName>${project.artifactId}</finalName>
  203. <pluginManagement>
  204. <plugins>
  205. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  206. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  207. <plugin>
  208. <groupId>org.apache.maven.plugins</groupId>
  209. <artifactId>maven-surefire-plugin</artifactId>
  210. <version>${maven-surefire-plugin.version}</version>
  211. </plugin>
  212. <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
  213. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-compiler-plugin</artifactId>
  217. <version>${maven-compiler-plugin.version}</version>
  218. <configuration>
  219. <annotationProcessorPaths>
  220. <path>
  221. <groupId>org.springframework.boot</groupId>
  222. <artifactId>spring-boot-configuration-processor</artifactId>
  223. <version>${spring.boot.version}</version>
  224. </path>
  225. <path>
  226. <groupId>org.projectlombok</groupId>
  227. <artifactId>lombok</artifactId>
  228. <version>${lombok.version}</version>
  229. </path>
  230. <path>
  231. <groupId>org.mapstruct</groupId>
  232. <artifactId>mapstruct-processor</artifactId>
  233. <version>${mapstruct.version}</version>
  234. </path>
  235. </annotationProcessorPaths>
  236. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  237. <debug>false</debug>
  238. <compilerArgs>
  239. <arg>-parameters</arg>
  240. </compilerArgs>
  241. </configuration>
  242. </plugin>
  243. </plugins>
  244. </pluginManagement>
  245. <plugins>
  246. <!-- 统一 revision 版本 -->
  247. <plugin>
  248. <groupId>org.codehaus.mojo</groupId>
  249. <artifactId>flatten-maven-plugin</artifactId>
  250. <version>${flatten-maven-plugin.version}</version>
  251. <configuration>
  252. <flattenMode>oss</flattenMode>
  253. <updatePomFile>true</updatePomFile>
  254. </configuration>
  255. <executions>
  256. <execution>
  257. <goals>
  258. <goal>flatten</goal>
  259. </goals>
  260. <id>flatten</id>
  261. <phase>process-resources</phase>
  262. </execution>
  263. <execution>
  264. <goals>
  265. <goal>clean</goal>
  266. </goals>
  267. <id>flatten.clean</id>
  268. <phase>clean</phase>
  269. </execution>
  270. </executions>
  271. </plugin>
  272. <!-- 关键:添加 spring-boot-maven-plugin -->
  273. <plugin>
  274. <groupId>org.springframework.boot</groupId>
  275. <artifactId>spring-boot-maven-plugin</artifactId>
  276. <version>${spring.boot.version}</version>
  277. <executions>
  278. <execution>
  279. <goals>
  280. <goal>repackage</goal>
  281. </goals>
  282. </execution>
  283. </executions>
  284. </plugin>
  285. </plugins>
  286. <resources>
  287. <resource>
  288. <directory>src/main/resources</directory>
  289. <includes>
  290. <include>**/*.*</include> <!-- 包含 PEM 文件 -->
  291. </includes>
  292. </resource>
  293. </resources>
  294. </build>
  295. </project>