blob: a1921d68f5c8c903866f464b624c57e615d25ec3 [file] [log] [blame]
22301080fd521b02025-04-24 23:22:49 +08001<?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.4.3</version>
9 <relativePath/> <!-- lookup parent from repository -->
10 </parent>
11 <groupId>com.ptp</groupId>
12 <artifactId>PTPlatform</artifactId>
13 <version>0.0.1-SNAPSHOT</version>
14 <name>PTPlatform</name>
15 <description>PTPlatform</description>
16 <properties>
17 <java.version>17</java.version>
18 </properties>
19 <dependencies>
20 <dependency>
21 <groupId>org.springframework.boot</groupId>
22 <artifactId>spring-boot-starter-web</artifactId>
23 </dependency>
24 <dependency>
25 <groupId>org.springframework.boot</groupId>
26 <artifactId>spring-boot-starter-test</artifactId>
27 <scope>test</scope>
28 </dependency>
29 <dependency>
30 <groupId>org.springframework.boot</groupId>
31 <artifactId>spring-boot-devtools</artifactId>
32 <optional>true</optional>
33 </dependency>
34 <dependency>
35 <groupId>org.springframework.boot</groupId>
36 <artifactId>spring-boot-starter-jdbc</artifactId>
37 </dependency>
38 <!-- Spring boot 核心 -->
39 <dependency>
40 <groupId>org.springframework.boot</groupId>
41 <artifactId>spring-boot-starter-data-jpa</artifactId>
42 </dependency>
43 <dependency>
44 <groupId>org.lionsoul</groupId>
45 <artifactId>ip2region</artifactId>
46 <version>1.7.2</version>
47 </dependency>
48 <!-- MyBatis Plus -->
49 <dependency>
50 <groupId>com.baomidou</groupId>
51 <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
52 <version>3.5.10.1</version>
53 </dependency>
Lambda6f532bd2025-05-14 15:22:57 +080054 <dependency>
55 <groupId>com.baomidou</groupId>
56 <artifactId>mybatis-plus-jsqlparser</artifactId>
57 <version>3.5.10.1</version> <!-- 确保版本和 MyBatis Plus 主包一致 -->
58 </dependency>
22301080fd521b02025-04-24 23:22:49 +080059 <!-- 数据库-->
60 <!-- Mysql依赖包 -->
61 <dependency>
62 <groupId>mysql</groupId>
63 <artifactId>mysql-connector-java</artifactId>
64 <version>8.0.25</version>
65 <scope>runtime</scope>
66 </dependency>
67 <!-- H2 内存数据库 -->
68 <dependency>
69 <groupId>com.h2database</groupId>
70 <artifactId>h2</artifactId>
71 <scope>test</scope>
72 </dependency>
73
74 <!-- druid 数据连接池 -->
75 <dependency>
76 <groupId>com.alibaba</groupId>
77 <artifactId>druid-spring-boot-starter</artifactId>
78 <version>1.1.20</version>
79 </dependency>
80
81 <!-- jwt登录验证 -->
82 <dependency>
83 <groupId>io.jsonwebtoken</groupId>
84 <artifactId>jjwt</artifactId>
85 <version>0.9.1</version>
86 </dependency>
87
88 <!-- 日期数据显示 -->
89 <dependency>
90 <groupId>javax.xml.bind</groupId>
91 <artifactId>jaxb-api</artifactId>
92 <version>2.3.0</version>
93 </dependency>
94 <dependency>
95 <groupId>org.glassfish.jaxb</groupId>
96 <artifactId>jaxb-runtime</artifactId>
97 <version>2.3.0</version>
98 </dependency>
99
100 <!-- 单元测试 -->
101 <dependency>
102 <groupId>junit</groupId>
103 <artifactId>junit</artifactId>
104 <version>4.12</version>
105 </dependency>
106
107 <!-- Mockito -->
108 <dependency>
109 <groupId>org.mockito</groupId>
110 <artifactId>mockito-core</artifactId>
111 <version>${mockito.version}</version>
112 <scope>test</scope>
113 </dependency>
114
Lambda6f532bd2025-05-14 15:22:57 +0800115 <dependency>
116 <groupId>org.projectlombok</groupId>
117 <artifactId>lombok</artifactId>
118 <version>1.18.32</version> <!-- 请根据需要选择最新版本 -->
119 <scope>provided</scope>
120 </dependency>
121
122 <dependency>
123 <groupId>com.jayway.jsonpath</groupId>
124 <artifactId>json-path</artifactId>
125 <version>2.9.0</version>
126 </dependency>
127
22301080fd521b02025-04-24 23:22:49 +0800128 </dependencies>
129
130 <build>
131 <plugins>
132 <!-- Maven 编译插件 -->
133 <plugin>
134 <groupId>org.apache.maven.plugins</groupId>
135 <artifactId>maven-compiler-plugin</artifactId>
136 <version>3.13.0</version>
137 <configuration>
138 <source>${java.version}</source>
139 <target>${java.version}</target>
140 </configuration>
141 </plugin>
142
143 <!-- 解决 Mockito 警告 -->
144 <plugin>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-surefire-plugin</artifactId>
147 <version>3.5.2</version>
148 <configuration>
149 <argLine>
150 -javaagent:"${settings.localRepository}/net/bytebuddy/byte-buddy-agent/1.15.11/byte-buddy-agent-1.15.11.jar"
151 </argLine>
152 </configuration>
153 </plugin>
154 </plugins>
155 </build>
156</project>