pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.7.18</version> <!-- 或 3.x,但配置略有不同 -->
  10. <relativePath/>
  11. </parent>
  12. <groupId>org.pay</groupId>
  13. <artifactId>msNewPayment2.0</artifactId>
  14. <version>1.0</version>
  15. <properties>
  16. <maven.compiler.source>8</maven.compiler.source>
  17. <maven.compiler.target>8</maven.compiler.target>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <!-- 环境标识 -->
  20. <env>dev</env>
  21. <commons-lang3.version>3.4</commons-lang3.version>
  22. <fastjson.version>2.0.61</fastjson.version>
  23. <httpcomponents-httpclient.version>4.5.14</httpcomponents-httpclient.version>
  24. <mybatis.version>3.2.0</mybatis.version>
  25. <mysql.version>8.0.33</mysql.version>
  26. </properties>
  27. <dependencies>
  28. <!-- Spring Boot Starter -->
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-web</artifactId>
  32. </dependency>
  33. <!-- commons -->
  34. <dependency>
  35. <groupId>org.apache.commons</groupId>
  36. <artifactId>commons-lang3</artifactId>
  37. <version>${commons-lang3.version}</version>
  38. </dependency>
  39. <!-- Apache HTTP Client -->
  40. <dependency>
  41. <groupId>org.apache.httpcomponents</groupId>
  42. <artifactId>httpclient</artifactId>
  43. <version>${httpcomponents-httpclient.version}</version>
  44. </dependency>
  45. <!-- lombok -->
  46. <dependency>
  47. <groupId>org.projectlombok</groupId>
  48. <artifactId>lombok</artifactId>
  49. <optional>true</optional>
  50. </dependency>
  51. <!-- json依赖 -->
  52. <dependency>
  53. <groupId>com.alibaba</groupId>
  54. <artifactId>fastjson</artifactId>
  55. <version>${fastjson.version}</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-validation</artifactId>
  60. </dependency>
  61. <!--redis-->
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-data-redis</artifactId>
  65. <exclusions>
  66. <!-- 过滤lettuce,使用jedis作为redis客户端 -->
  67. <exclusion>
  68. <groupId>io.lettuce</groupId>
  69. <artifactId>lettuce-core</artifactId>
  70. </exclusion>
  71. </exclusions>
  72. </dependency>
  73. <dependency>
  74. <groupId>redis.clients</groupId>
  75. <artifactId>jedis</artifactId>
  76. </dependency>
  77. <!-- @RefreshScope 核心支持 -->
  78. <dependency>
  79. <groupId>org.springframework.cloud</groupId>
  80. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  81. </dependency>
  82. <!-- spring cloud config -->
  83. <dependency>
  84. <groupId>org.springframework.cloud</groupId>
  85. <artifactId>spring-cloud-starter-config</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.mysql</groupId>
  89. <artifactId>mysql-connector-j</artifactId>
  90. <version>${mysql.version}</version>
  91. <scope>runtime</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.baomidou</groupId>
  95. <artifactId>mybatis-plus-boot-starter</artifactId>
  96. <version>${mybatis.version}</version>
  97. </dependency>
  98. </dependencies>
  99. <!-- BOM 版本管理 -->
  100. <dependencyManagement>
  101. <dependencies>
  102. <dependency>
  103. <groupId>org.springframework.cloud</groupId>
  104. <artifactId>spring-cloud-dependencies</artifactId>
  105. <version>2021.0.9</version>
  106. <type>pom</type>
  107. <scope>import</scope>
  108. </dependency>
  109. </dependencies>
  110. </dependencyManagement>
  111. <!-- 环境配置 -->
  112. <profiles>
  113. <!-- 开发环境 -->
  114. <!-- <profile>-->
  115. <!-- <id>dev</id>-->
  116. <!-- <activation>-->
  117. <!-- <activeByDefault>true</activeByDefault>-->
  118. <!-- </activation>-->
  119. <!-- <properties>-->
  120. <!-- <env>dev</env>-->
  121. <!-- <spring.profiles.active>dev</spring.profiles.active>-->
  122. <!-- </properties>-->
  123. <!-- <build>-->
  124. <!-- <finalName>${project.artifactId}-${project.version}-dev</finalName>-->
  125. <!-- </build>-->
  126. <!-- </profile>-->
  127. <!-- 生产环境 -->
  128. <profile>
  129. <id>pro</id>
  130. <activation>
  131. <activeByDefault>true</activeByDefault>
  132. </activation>
  133. <properties>
  134. <env>pro</env>
  135. <spring.profiles.active>pro</spring.profiles.active>
  136. </properties>
  137. <build>
  138. <finalName>${project.artifactId}-${project.version}-pro</finalName>
  139. </build>
  140. </profile>
  141. </profiles>
  142. <build>
  143. <!-- 资源过滤配置 -->
  144. <resources>
  145. <resource>
  146. <directory>src/main/resources</directory>
  147. <filtering>true</filtering>
  148. <includes>
  149. <include>**/*.properties</include>
  150. <include>**/*.yml</include>
  151. <include>**/*.yaml</include>
  152. <include>**/*.xml</include>
  153. </includes>
  154. </resource>
  155. <resource>
  156. <directory>src/main/resources</directory>
  157. <filtering>false</filtering>
  158. <excludes>
  159. <exclude>**/*.properties</exclude>
  160. <exclude>**/*.yml</exclude>
  161. <exclude>**/*.yaml</exclude>
  162. <exclude>**/*.xml</exclude>
  163. </excludes>
  164. </resource>
  165. </resources>
  166. <plugins>
  167. <plugin>
  168. <groupId>org.springframework.boot</groupId>
  169. <artifactId>spring-boot-maven-plugin</artifactId>
  170. <configuration>
  171. <!-- 激活的Spring Profile -->
  172. <profiles>
  173. <profile>${spring.profiles.active}</profile>
  174. </profiles>
  175. </configuration>
  176. </plugin>
  177. <!-- 资源过滤插件 -->
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-resources-plugin</artifactId>
  181. <version>3.2.0</version>
  182. <configuration>
  183. <encoding>UTF-8</encoding>
  184. </configuration>
  185. </plugin>
  186. </plugins>
  187. </build>
  188. </project>