pom.xml 7.0 KB

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