blob: f9987ac1238c77ef704eeb4fe9b246838c567edc [file] [log] [blame]
22301115cf6dba22025-03-25 19:06:21 +08001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0"
223011381c359102025-06-03 15:19:59 +08003 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">
22301115cf6dba22025-03-25 19:06:21 +08005 <modelVersion>4.0.0</modelVersion>
6
7 <groupId>groupId</groupId>
8 <artifactId>echo-backend</artifactId>
9 <version>1.0-SNAPSHOT</version>
10 <parent>
11 <groupId>org.springframework.boot</groupId>
12 <artifactId>spring-boot-starter-parent</artifactId>
223011381c359102025-06-03 15:19:59 +080013 <version>2.6.0</version>
14 <relativePath/> <!-- lookup parent from repository -->
22301115cf6dba22025-03-25 19:06:21 +080015 </parent>
223011381c359102025-06-03 15:19:59 +080016
22301115cf6dba22025-03-25 19:06:21 +080017 <properties>
18 <maven.compiler.source>17</maven.compiler.source>
19 <maven.compiler.target>17</maven.compiler.target>
20 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21 </properties>
22
23 <dependencies>
24 <!--引入hutool-->
25 <!-- Add Apache Commons IO -->
26 <dependency>
27 <groupId>com.baomidou</groupId>
28 <artifactId>mybatis-plus-boot-starter</artifactId>
29 <version>3.5.3.1</version>
30 </dependency>
31
32
33 <!-- Add Guava -->
34 <dependency>
35 <groupId>com.google.guava</groupId>
36 <artifactId>guava</artifactId>
37 <version>31.0.1-jre</version> <!-- Replace with the latest version -->
38 </dependency>
39 <dependency>
40 <groupId>io.springfox</groupId>
41 <artifactId>springfox-swagger2</artifactId>
42 <version>3.0.0</version> <!-- Replace with the latest version -->
43 </dependency>
44 <dependency>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-data-redis</artifactId>
47 </dependency>
48
49 <dependency>
50 <groupId>io.springfox</groupId>
51 <artifactId>springfox-swagger-ui</artifactId>
52 <version>3.0.0</version> <!-- Replace with the latest version -->
53 </dependency>
54
55 <dependency>
56 <groupId>cn.hutool</groupId>
57 <artifactId>hutool-all</artifactId>
58 <version>5.3.9</version>
59 </dependency>
60 <!-- Spring Boot Starter Web -->
61 <dependency>
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-web</artifactId>
64 </dependency>
65 <!-- Spring Boot Starter Data JPA -->
66 <!-- MySQL Connector -->
67 <dependency>
68 <groupId>mysql</groupId>
69 <artifactId>mysql-connector-java</artifactId>
70 </dependency>
71 <!-- Spring Boot Starter Security -->
72 <dependency>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-starter-security</artifactId>
75 </dependency>
76 <!-- JAXB API -->
77 <dependency>
78 <groupId>javax.xml.bind</groupId>
79 <artifactId>jaxb-api</artifactId>
80 </dependency>
81 <!-- Spring Web MVC -->
82 <dependency>
83 <groupId>org.springframework</groupId>
84 <artifactId>spring-webmvc</artifactId>
85 </dependency>
86 <!-- Spring AOP -->
87 <dependency>
88 <groupId>org.springframework</groupId>
89 <artifactId>spring-aop</artifactId>
90 </dependency>
91 <dependency>
92 <groupId>org.springframework.boot</groupId>
93 <artifactId>spring-boot-starter-mail</artifactId>
94 </dependency>
95 <dependency>
96 <groupId>org.apache.commons</groupId>
97 <artifactId>commons-lang3</artifactId>
98 <version>3.12.0</version>
99 </dependency>
100 <dependency>
101 <groupId>com.alibaba</groupId>
102 <artifactId>fastjson</artifactId>
103 <version>1.2.39</version>
104 </dependency>
105 <dependency>
106 <groupId>org.projectlombok</groupId>
107 <artifactId>lombok</artifactId>
108 <version>1.18.30</version> <!-- 确保使用的是最新版本 -->
109 <scope>provided</scope>
110 </dependency>
111
112 <dependency>
113 <groupId>org.slf4j</groupId>
114 <artifactId>slf4j-api</artifactId>
223011381c359102025-06-03 15:19:59 +0800115 <version>1.7.30</version> <!-- 版本可以根据需要调整 -->
22301115cf6dba22025-03-25 19:06:21 +0800116 </dependency>
117 <dependency>
118 <groupId>ch.qos.logback</groupId>
119 <artifactId>logback-classic</artifactId>
120 <version>1.2.3</version> <!-- 版本可以根据需要调整 -->
121 </dependency>
122 <dependency>
223011381c359102025-06-03 15:19:59 +0800123
22301115cf6dba22025-03-25 19:06:21 +0800124 <groupId>commons-fileupload</groupId>
125 <artifactId>commons-fileupload</artifactId>
126 <version>1.4</version>
127 </dependency>
128
129 <dependency>
130 <groupId>org.springframework.boot</groupId>
131 <artifactId>spring-boot-starter-validation</artifactId>
132 </dependency>
223011381c359102025-06-03 15:19:59 +0800133 <dependency>
134 <groupId>com.baidubce</groupId>
135 <artifactId>qianfan</artifactId>
136 <version>0.1.1</version>
137 </dependency>
22301115cf6dba22025-03-25 19:06:21 +0800138 <dependency>
139 <groupId>org.springframework.boot</groupId>
140 <artifactId>spring-boot-starter-webflux</artifactId>
141 </dependency>
142 <dependency>
143 <groupId>junit</groupId>
144 <artifactId>junit</artifactId>
145 <version>4.12</version>
146 <scope>test</scope>
147 </dependency>
223011381c359102025-06-03 15:19:59 +0800148 <dependency>
149 <groupId>org.mockito</groupId>
150 <artifactId>mockito-core</artifactId>
151 <scope>test</scope>
152 </dependency>
22301115cf6dba22025-03-25 19:06:21 +0800153 <dependency>
154 <groupId>org.springframework.boot</groupId>
155 <artifactId>spring-boot-starter-test</artifactId>
156 <scope>test</scope>
157 </dependency>
158
2230113820360382025-05-06 17:40:59 +0800159 <dependency>
160 <groupId>jakarta.persistence</groupId>
161 <artifactId>jakarta.persistence-api</artifactId>
162 <version>3.1.0</version>
163 </dependency>
164
223011381c359102025-06-03 15:19:59 +0800165 <dependency>
166 <groupId>org.springframework.boot</groupId>
167 <artifactId>spring-boot-starter-data-jpa</artifactId>
168 </dependency>
169
170 <dependency>
171 <groupId>jakarta.transaction</groupId>
172 <artifactId>jakarta.transaction-api</artifactId>
173 <version>2.0.0</version> <!-- 使用最新版本 -->
174 </dependency>
175
176 <dependency>
177 <groupId>org.hibernate</groupId>
178 <artifactId>hibernate-core</artifactId>
179 <version>5.6.7.Final</version> <!-- 与 Jakarta 兼容的版本 -->
180 </dependency>
181
182 <dependency>
183 <groupId>mysql</groupId>
184 <artifactId>mysql-connector-java</artifactId>
185 <version>8.0.27</version> <!-- 使用适合你的版本 -->
186 </dependency>
187
22301115cf6dba22025-03-25 19:06:21 +0800188 </dependencies>
189
190
191 <build>
192 <plugins>
193 <plugin>
194 <groupId>org.springframework.boot</groupId>
195 <artifactId>spring-boot-maven-plugin</artifactId>
196 </plugin>
197 <plugin>
198 <groupId>org.apache.maven.plugins</groupId>
199 <artifactId>maven-compiler-plugin</artifactId>
200 <version>3.8.1</version>
201 <configuration>
202 <source>17</source>
203 <target>17</target>
204 <compilerArgs>
205 <arg>--add-opens</arg>
206 <arg>jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
207 </compilerArgs>
208 </configuration>
209
210 </plugin>
211 <plugin>
212 <groupId>org.jacoco</groupId>
213 <artifactId>jacoco-maven-plugin</artifactId>
214 <version>0.8.8</version>
215 <executions>
216 <execution>
217 <goals>
218 <goal>prepare-agent</goal>
219 </goals>
220 </execution>
221 <execution>
222 <id>report</id>
223 <phase>test</phase>
224 <goals>
225 <goal>report</goal>
226 </goals>
227 </execution>
228 </executions>
229 </plugin>
230 <plugin>
231 <groupId>org.apache.maven.plugins</groupId>
232 <artifactId>maven-surefire-plugin</artifactId>
233 <version>2.9</version>
234 <configuration>
223011381c359102025-06-03 15:19:59 +0800235 <!--suppress UnresolvedMavenProperty -->
22301115cf6dba22025-03-25 19:06:21 +0800236 <argLine>${surefireArgLine}</argLine>
237 <skipTests>false</skipTests>
238 <includes>
239 <include>**/*Test.java</include>
240 </includes>
241 </configuration>
242 </plugin>
243 <plugin>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-surefire-report-plugin</artifactId>
246 <version>2.12.2</version>
247 <configuration>
248 <showSuccess>false</showSuccess>
249 </configuration>
250
251 </plugin>
252
253 </plugins>
223011381c359102025-06-03 15:19:59 +0800254 <resources>
255 <resource>
256 <directory>src/main/java</directory>
257 <includes>
258 <include>**/*.xml</include>
259 </includes>
260 </resource>
261 </resources>
22301115cf6dba22025-03-25 19:06:21 +0800262 </build>
263
264</project>