pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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>3.3.0</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>pay.platform</groupId>
  13. <artifactId>merchant-api</artifactId>
  14. <version>1.0.0-SNAPSHOT</version>
  15. <description>商户接口</description>
  16. <properties>
  17. <java.version>21</java.version>
  18. <maven.compiler.source>21</maven.compiler.source>
  19. <maven.compiler.target>21</maven.compiler.target>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <jwt.version>4.4.0</jwt.version>
  22. <knife4j.version>4.4.0</knife4j.version>
  23. </properties>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-actuator</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-data-redis</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-validation</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-web</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.projectlombok</groupId>
  43. <artifactId>lombok</artifactId>
  44. <optional>true</optional>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-test</artifactId>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.security</groupId>
  53. <artifactId>spring-security-test</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <!-- 安全 -->
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-security</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.auth0</groupId>
  63. <artifactId>java-jwt</artifactId>
  64. <version>${jwt.version}</version>
  65. </dependency>
  66. <!-- 数据库 -->
  67. <dependency>
  68. <groupId>com.zaxxer</groupId>
  69. <artifactId>HikariCP</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.mysql</groupId>
  73. <artifactId>mysql-connector-j</artifactId>
  74. <scope>runtime</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>pay.platform</groupId>
  78. <artifactId>db-merchant</artifactId>
  79. <version>1.0.0-SNAPSHOT</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>pay.platform</groupId>
  83. <artifactId>db-agent</artifactId>
  84. <version>1.0.0-SNAPSHOT</version>
  85. </dependency>
  86. <!-- Doc -->
  87. <dependency>
  88. <groupId>com.github.xiaoymin</groupId>
  89. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  90. <version>${knife4j.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>cn.bzvs</groupId>
  94. <artifactId>otp-auth</artifactId>
  95. <version>1.0</version>
  96. <scope>compile</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>pay.platform</groupId>
  100. <artifactId>db-system</artifactId>
  101. <version>1.0.0-SNAPSHOT</version>
  102. </dependency>
  103. </dependencies>
  104. <build>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-compiler-plugin</artifactId>
  109. <configuration>
  110. <source>${java.version}</source>
  111. <target>${java.version}</target>
  112. <compilerArgs>--enable-preview</compilerArgs>
  113. </configuration>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. <configuration>
  119. <excludes>
  120. <exclude>
  121. <groupId>org.projectlombok</groupId>
  122. <artifactId>lombok</artifactId>
  123. </exclude>
  124. </excludes>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>com.google.cloud.tools</groupId>
  129. <artifactId>jib-maven-plugin</artifactId>
  130. <version>3.4.2</version>
  131. <configuration>
  132. <!-- 拉取所需的基础镜像 - 这里的jdk21,是用于运行springboot项目 -->
  133. <from>
  134. <image>taskgo/corretto:21</image>
  135. </from>
  136. <!-- 最后生成的镜像配置 -->
  137. <to>
  138. <!-- push docker 仓库。用户名/镜像名 -->
  139. <image>hkccr.ccs.tencentyun.com/pay-platform/merchant-api</image>
  140. <tags>
  141. <!--版本号-->
  142. <tag>latest</tag>
  143. </tags>
  144. <auth>
  145. <!--账号和密码-->
  146. <username>100004270996</username>
  147. <password>open@2023</password>
  148. </auth>
  149. </to>
  150. <container>
  151. <jvmFlags>
  152. <jvmFlag>--enable-preview</jvmFlag>
  153. <jvmFlag>-Xmx1g</jvmFlag>
  154. <jvmFlag>-Xmx1g</jvmFlag>
  155. <jvmFlag>-Duser.timezone=Asia/Shanghai</jvmFlag>
  156. </jvmFlags>
  157. <mainClass>pay.platform.MerchantApplication</mainClass>
  158. <ports>
  159. <port>8090</port>
  160. </ports>
  161. </container>
  162. <allowInsecureRegistries>true</allowInsecureRegistries>
  163. </configuration>
  164. <executions>
  165. <execution>
  166. <phase>package</phase>
  167. <goals>
  168. <goal>build</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. </plugins>
  174. </build>
  175. </project>