pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>3.3.0</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>pay.platform</groupId>
  12. <artifactId>admin-api</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <description>系统接口</description>
  15. <properties>
  16. <java.version>21</java.version>
  17. <maven.compiler.source>21</maven.compiler.source>
  18. <maven.compiler.target>21</maven.compiler.target>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <jwt.version>4.4.0</jwt.version>
  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. <!-- 安全 -->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-security</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.auth0</groupId>
  62. <artifactId>java-jwt</artifactId>
  63. <version>${jwt.version}</version>
  64. </dependency>
  65. <!-- 数据库 -->
  66. <dependency>
  67. <groupId>com.zaxxer</groupId>
  68. <artifactId>HikariCP</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.mysql</groupId>
  72. <artifactId>mysql-connector-j</artifactId>
  73. <scope>runtime</scope>
  74. </dependency>
  75. <!-- Doc -->
  76. <dependency>
  77. <groupId>com.github.xiaoymin</groupId>
  78. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  79. <version>${knife4j.version}</version>
  80. </dependency>
  81. <!-- 引入db模块 -->
  82. <dependency>
  83. <groupId>pay.platform</groupId>
  84. <artifactId>db-system</artifactId>
  85. <version>1.0.0-SNAPSHOT</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>pay.platform</groupId>
  89. <artifactId>db-agent</artifactId>
  90. <version>1.0.0-SNAPSHOT</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>cn.bzvs</groupId>
  94. <artifactId>otp-auth</artifactId>
  95. <version>1.0</version>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <plugins>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-compiler-plugin</artifactId>
  103. <configuration>
  104. <source>${java.version}</source>
  105. <target>${java.version}</target>
  106. <compilerArgs>--enable-preview</compilerArgs>
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-maven-plugin</artifactId>
  112. <configuration>
  113. <excludes>
  114. <exclude>
  115. <groupId>org.projectlombok</groupId>
  116. <artifactId>lombok</artifactId>
  117. </exclude>
  118. </excludes>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>com.google.cloud.tools</groupId>
  123. <artifactId>jib-maven-plugin</artifactId>
  124. <version>3.4.0</version>
  125. <configuration>
  126. <!-- 拉取所需的基础镜像 - 这里的jdk21,是用于运行springboot项目 -->
  127. <from>
  128. <image>taskgo/corretto:21</image>
  129. </from>
  130. <!-- 最后生成的镜像配置 -->
  131. <to>
  132. <!-- push docker 仓库。用户名/镜像名 -->
  133. <image>hkccr.ccs.tencentyun.com/pay-platform/admin-api</image>
  134. <tags>
  135. <!--版本号-->
  136. <tag>latest</tag>
  137. </tags>
  138. <auth>
  139. <!--账号和密码-->
  140. <username>100004270996</username>
  141. <password>open@2023</password>
  142. </auth>
  143. </to>
  144. <container>
  145. <jvmFlags>
  146. <jvmFlag>--enable-preview</jvmFlag>
  147. <jvmFlag>-Xmx1g</jvmFlag>
  148. <jvmFlag>-Xmx1g</jvmFlag>
  149. <jvmFlag>-Duser.timezone=Asia/Shanghai</jvmFlag>
  150. </jvmFlags>
  151. <mainClass>pay.platform.AdminApplication</mainClass>
  152. <ports>
  153. <port>8088</port>
  154. </ports>
  155. </container>
  156. <allowInsecureRegistries>true</allowInsecureRegistries>
  157. </configuration>
  158. <executions>
  159. <execution>
  160. <phase>package</phase>
  161. <goals>
  162. <goal>build</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. </project>