blob: 8e12b26b3866df3876e360c47661f29d31a09541 [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>
54 <!-- 数据库-->
55 <!-- Mysql依赖包 -->
56 <dependency>
57 <groupId>mysql</groupId>
58 <artifactId>mysql-connector-java</artifactId>
59 <version>8.0.25</version>
60 <scope>runtime</scope>
61 </dependency>
62 <!-- H2 内存数据库 -->
63 <dependency>
64 <groupId>com.h2database</groupId>
65 <artifactId>h2</artifactId>
66 <scope>test</scope>
67 </dependency>
68
69 <!-- druid 数据连接池 -->
70 <dependency>
71 <groupId>com.alibaba</groupId>
72 <artifactId>druid-spring-boot-starter</artifactId>
73 <version>1.1.20</version>
74 </dependency>
75
76 <!-- jwt登录验证 -->
77 <dependency>
78 <groupId>io.jsonwebtoken</groupId>
79 <artifactId>jjwt</artifactId>
80 <version>0.9.1</version>
81 </dependency>
82
83 <!-- 日期数据显示 -->
84 <dependency>
85 <groupId>javax.xml.bind</groupId>
86 <artifactId>jaxb-api</artifactId>
87 <version>2.3.0</version>
88 </dependency>
89 <dependency>
90 <groupId>org.glassfish.jaxb</groupId>
91 <artifactId>jaxb-runtime</artifactId>
92 <version>2.3.0</version>
93 </dependency>
94
95 <!-- 单元测试 -->
96 <dependency>
97 <groupId>junit</groupId>
98 <artifactId>junit</artifactId>
99 <version>4.12</version>
100 </dependency>
101
102 <!-- Mockito -->
103 <dependency>
104 <groupId>org.mockito</groupId>
105 <artifactId>mockito-core</artifactId>
106 <version>${mockito.version}</version>
107 <scope>test</scope>
108 </dependency>
109
110 </dependencies>
111
112 <build>
113 <plugins>
114 <!-- Maven 编译插件 -->
115 <plugin>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-compiler-plugin</artifactId>
118 <version>3.13.0</version>
119 <configuration>
120 <source>${java.version}</source>
121 <target>${java.version}</target>
122 </configuration>
123 </plugin>
124
125 <!-- 解决 Mockito 警告 -->
126 <plugin>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-surefire-plugin</artifactId>
129 <version>3.5.2</version>
130 <configuration>
131 <argLine>
132 -javaagent:"${settings.localRepository}/net/bytebuddy/byte-buddy-agent/1.15.11/byte-buddy-agent-1.15.11.jar"
133 </argLine>
134 </configuration>
135 </plugin>
136 </plugins>
137 </build>
138</project>