blob: 92ca907d9e25ee65233e62338867fdc9c11d5832 [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"
223011385e9c35a2025-06-04 15:52:45 +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>
223011385e9c35a2025-06-04 15:52:45 +080013 <version>2.6.0</version>
14 <relativePath/> <!-- lookup parent from repository -->
22301115cf6dba22025-03-25 19:06:21 +080015 </parent>
223011385e9c35a2025-06-04 15:52:45 +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>
223011385e9c35a2025-06-04 15:52:45 +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>
223011385e9c35a2025-06-04 15:52:45 +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>
223011385e9c35a2025-06-04 15:52:45 +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>
223011385e9c35a2025-06-04 15:52:45 +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>
223011385e9c35a2025-06-04 15:52:45 +0800158
159 <dependency>
160 <groupId>jakarta.persistence</groupId>
161 <artifactId>jakarta.persistence-api</artifactId>
162 <version>3.1.0</version>
163 </dependency>
164
165 <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>
YelinCui51593482025-06-04 18:35:16 +0800187 <dependency>
188 <groupId>com.turn</groupId>
189 <artifactId>ttorrent-common</artifactId>
190 <version>1.3.0-SNAPSHOT</version>
191 </dependency>
223011385e9c35a2025-06-04 15:52:45 +0800192
YelinCui51593482025-06-04 18:35:16 +0800193 <!-- ttorrent -->
194 <dependency>
195 <groupId>com.turn</groupId>
196 <artifactId>ttorrent-client</artifactId>
197 <version>1.3.0-SNAPSHOT</version>
198 </dependency>
199 <dependency>
200 <groupId>com.turn</groupId>
201 <artifactId>ttorrent-cli</artifactId>
202 <version>1.3.0-SNAPSHOT</version>
203 </dependency>
204 <dependency>
205 <groupId>com.turn</groupId>
206 <artifactId>ttorrent-network</artifactId>
207 <version>1.0</version>
208 </dependency>
209 <dependency>
210 <groupId>com.turn</groupId>
211 <artifactId>ttorrent-test-api</artifactId>
212 <version>1.0</version>
213 </dependency>
214 <dependency>
215 <groupId>com.turn</groupId>
216 <artifactId>ttorrent-bencoding</artifactId>
217 <version>1.3.0-SNAPSHOT</version>
218 </dependency>
219 <dependency>
220 <groupId>com.turn</groupId>
221 <artifactId>ttorrent-tests</artifactId>
222 <version>1.3.0-SNAPSHOT</version>
223 </dependency>
224 <dependency>
225 <groupId>com.turn</groupId>
226 <artifactId>ttorrent-tracker</artifactId>
227 <version>1.3.0-SNAPSHOT</version>
228 </dependency>
229
230<!-- <dependency>-->
231<!-- <groupId>com.turn</groupId>-->
232<!-- <artifactId>ttorrent-common</artifactId>-->
233<!-- <version>1.3.0-SNAPSHOT</version>-->
234<!-- </dependency>-->
235<!-- &lt;!&ndash; ttorrent &ndash;&gt;-->
236<!-- <dependency>-->
237<!-- <groupId>com.turn</groupId>-->
238<!-- <artifactId>ttorrent-client</artifactId>-->
239<!-- <version>1.3.0-SNAPSHOT</version>-->
240<!-- </dependency>-->
241<!-- <dependency>-->
242<!-- <groupId>com.turn</groupId>-->
243<!-- <artifactId>ttorrent-cli</artifactId>-->
244<!-- <version>1.3.0-SNAPSHOT</version>-->
245<!-- </dependency>-->
246<!-- <dependency>-->
247<!-- <groupId>com.turn</groupId>-->
248<!-- <artifactId>ttorrent-network</artifactId>-->
249<!-- <version>1.0</version>-->
250<!-- </dependency>-->
251<!-- <dependency>-->
252<!-- <groupId>com.turn</groupId>-->
253<!-- <artifactId>ttorrent-test-api</artifactId>-->
254<!-- <version>1.0</version>-->
255<!-- </dependency>-->
256<!-- <dependency>-->
257<!-- <groupId>com.turn</groupId>-->
258<!-- <artifactId>ttorrent-bencoding</artifactId>-->
259<!-- <version>1.3.0-SNAPSHOT</version>-->
260<!-- </dependency>-->
261<!-- <dependency>-->
262<!-- <groupId>com.turn</groupId>-->
263<!-- <artifactId>ttorrent-tests</artifactId>-->
264<!-- <version>1.3.0-SNAPSHOT</version>-->
265<!-- </dependency>-->
266<!-- <dependency>-->
267<!-- <groupId>com.turn</groupId>-->
268<!-- <artifactId>ttorrent-tracker</artifactId>-->
269<!-- <version>1.3.0-SNAPSHOT</version>-->
270<!-- </dependency>-->
223011385e9c35a2025-06-04 15:52:45 +0800271
2230111590135d72025-06-03 17:11:40 +0800272 <dependency>
223011385e9c35a2025-06-04 15:52:45 +0800273 <groupId>com.github.pagehelper</groupId>
274 <artifactId>pagehelper-spring-boot-starter</artifactId>
275 <version>1.4.7</version>
2230111590135d72025-06-03 17:11:40 +0800276 </dependency>
277
278 <dependency>
279 <groupId>cn.dev33</groupId>
280 <artifactId>sa-token-spring-boot-starter</artifactId>
223011385e9c35a2025-06-04 15:52:45 +0800281 <version>1.38.0</version> <!-- 请确认使用最新版本或与你的Spring Boot版本匹配 -->
2230111590135d72025-06-03 17:11:40 +0800282 </dependency>
283
284
2230113820360382025-05-06 17:40:59 +0800285 <dependency>
223011385e9c35a2025-06-04 15:52:45 +0800286 <groupId>org.simpleframework</groupId>
287 <artifactId>simple</artifactId>
288 <version>4.1.21</version>
2230113820360382025-05-06 17:40:59 +0800289 </dependency>
290
223011385e9c35a2025-06-04 15:52:45 +0800291
292
22301115cf6dba22025-03-25 19:06:21 +0800293 </dependencies>
294
295
223011385e9c35a2025-06-04 15:52:45 +0800296
297
22301115cf6dba22025-03-25 19:06:21 +0800298 <build>
299 <plugins>
300 <plugin>
301 <groupId>org.springframework.boot</groupId>
302 <artifactId>spring-boot-maven-plugin</artifactId>
303 </plugin>
304 <plugin>
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-compiler-plugin</artifactId>
307 <version>3.8.1</version>
308 <configuration>
309 <source>17</source>
310 <target>17</target>
311 <compilerArgs>
312 <arg>--add-opens</arg>
313 <arg>jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
314 </compilerArgs>
315 </configuration>
316
317 </plugin>
318 <plugin>
YelinCui51593482025-06-04 18:35:16 +0800319 <groupId>org.springframework.boot</groupId>
320 <artifactId>spring-boot-maven-plugin</artifactId>
321 <configuration>
322 <includeSystemScope>true</includeSystemScope>
323 <!-- 如果使用 system scope -->
324 </configuration>
325 </plugin>
326 <plugin>
22301115cf6dba22025-03-25 19:06:21 +0800327 <groupId>org.jacoco</groupId>
328 <artifactId>jacoco-maven-plugin</artifactId>
329 <version>0.8.8</version>
330 <executions>
331 <execution>
332 <goals>
333 <goal>prepare-agent</goal>
334 </goals>
335 </execution>
336 <execution>
337 <id>report</id>
338 <phase>test</phase>
339 <goals>
340 <goal>report</goal>
341 </goals>
342 </execution>
343 </executions>
344 </plugin>
345 <plugin>
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-surefire-plugin</artifactId>
348 <version>2.9</version>
349 <configuration>
223011385e9c35a2025-06-04 15:52:45 +0800350 <!--suppress UnresolvedMavenProperty -->
22301115cf6dba22025-03-25 19:06:21 +0800351 <argLine>${surefireArgLine}</argLine>
352 <skipTests>false</skipTests>
353 <includes>
354 <include>**/*Test.java</include>
355 </includes>
356 </configuration>
357 </plugin>
358 <plugin>
359 <groupId>org.apache.maven.plugins</groupId>
360 <artifactId>maven-surefire-report-plugin</artifactId>
361 <version>2.12.2</version>
362 <configuration>
363 <showSuccess>false</showSuccess>
364 </configuration>
365
366 </plugin>
367
368 </plugins>
223011385e9c35a2025-06-04 15:52:45 +0800369 <!-- <resources>-->
370 <!-- <resource>-->
371 <!-- <directory>src/main/java</directory>-->
372 <!-- <includes>-->
373 <!-- <include>**/*.xml</include>-->
374 <!-- </includes>-->
375 <!-- </resource>-->
376 <!-- <resource>-->
377 <!-- <directory>libs</directory>-->
378 <!-- <includes>-->
379 <!-- <include>*.jar</include>-->
380 <!-- </includes>-->
381 <!-- </resource>-->
382 <!-- </resources>-->
2230111590135d72025-06-03 17:11:40 +0800383
384
22301115cf6dba22025-03-25 19:06:21 +0800385 </build>
386
387</project>