blob: 122744cb774ba87359044576fbcdb020443b8dd0 [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>
187
Cris-KK08f74052025-06-05 20:03:52 +0800188 <dependency>
189 <groupId>groupId</groupId>
190 <artifactId>echo-backend-ttorrent-bencoding</artifactId>
191 <version>1.0</version>
192 <scope>system</scope>
193 <systemPath>${project.basedir}/libs/ttorrent-bencoding-1.3.0-SNAPSHOT.jar</systemPath>
194 </dependency>
195 <dependency>
196 <groupId>groupId</groupId>
197 <artifactId>echo-backend-ttorrent-cli</artifactId>
198 <version>1.0</version>
199 <scope>system</scope>
200 <systemPath>${project.basedir}/libs/ttorrent-cli-1.3.0-SNAPSHOT.jar</systemPath>
201 </dependency>
202 <dependency>
203 <groupId>groupId</groupId>
204 <artifactId>echo-backend-ttorrent-common</artifactId>
205 <version>1.0</version>
206 <scope>system</scope>
207 <systemPath>${project.basedir}/libs/ttorrent-common-1.3.0-SNAPSHOT.jar</systemPath>
208 </dependency>
209 <dependency>
210 <groupId>groupId</groupId>
211 <artifactId>echo-backend-ttorrent-network</artifactId>
212 <version>1.0</version>
213 <scope>system</scope>
214 <systemPath>${project.basedir}/libs/ttorrent-network-1.0.jar</systemPath>
215 </dependency>
216 <dependency>
217 <groupId>groupId</groupId>
218 <artifactId>echo-backend-ttorrent-client</artifactId>
219 <version>1.0</version>
220 <scope>system</scope>
221 <systemPath>${project.basedir}/libs/ttorrent-client-1.3.0-SNAPSHOT.jar</systemPath>
222 </dependency>
223 <dependency>
224 <groupId>groupId</groupId>
225 <artifactId>echo-backend-ttorrent-tracker</artifactId>
226 <version>1.0</version>
227 <scope>system</scope>
228 <systemPath>${project.basedir}/libs/ttorrent-tracker-1.3.0-SNAPSHOT.jar</systemPath>
229 </dependency>
223011385e9c35a2025-06-04 15:52:45 +0800230
2230111590135d72025-06-03 17:11:40 +0800231 <dependency>
223011385e9c35a2025-06-04 15:52:45 +0800232 <groupId>com.github.pagehelper</groupId>
233 <artifactId>pagehelper-spring-boot-starter</artifactId>
234 <version>1.4.7</version>
2230111590135d72025-06-03 17:11:40 +0800235 </dependency>
236
237 <dependency>
238 <groupId>cn.dev33</groupId>
239 <artifactId>sa-token-spring-boot-starter</artifactId>
223011385e9c35a2025-06-04 15:52:45 +0800240 <version>1.38.0</version> <!-- 请确认使用最新版本或与你的Spring Boot版本匹配 -->
2230111590135d72025-06-03 17:11:40 +0800241 </dependency>
242
243
2230113820360382025-05-06 17:40:59 +0800244 <dependency>
223011385e9c35a2025-06-04 15:52:45 +0800245 <groupId>org.simpleframework</groupId>
246 <artifactId>simple</artifactId>
247 <version>4.1.21</version>
2230113820360382025-05-06 17:40:59 +0800248 </dependency>
Cris-KK08f74052025-06-05 20:03:52 +0800249 <dependency>
250 <groupId>jakarta.servlet</groupId>
251 <artifactId>jakarta.servlet-api</artifactId>
252 <version>6.0.0</version>
253 <scope>provided</scope> <!-- 若在Servlet容器中运行,使用provided -->
254 </dependency>
2230113820360382025-05-06 17:40:59 +0800255
223011385e9c35a2025-06-04 15:52:45 +0800256
257
22301115cf6dba22025-03-25 19:06:21 +0800258 </dependencies>
259
260
223011385e9c35a2025-06-04 15:52:45 +0800261
262
22301115cf6dba22025-03-25 19:06:21 +0800263 <build>
264 <plugins>
265 <plugin>
266 <groupId>org.springframework.boot</groupId>
267 <artifactId>spring-boot-maven-plugin</artifactId>
268 </plugin>
269 <plugin>
270 <groupId>org.apache.maven.plugins</groupId>
271 <artifactId>maven-compiler-plugin</artifactId>
272 <version>3.8.1</version>
273 <configuration>
274 <source>17</source>
275 <target>17</target>
276 <compilerArgs>
277 <arg>--add-opens</arg>
278 <arg>jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
279 </compilerArgs>
280 </configuration>
281
282 </plugin>
283 <plugin>
YelinCui51593482025-06-04 18:35:16 +0800284 <groupId>org.springframework.boot</groupId>
285 <artifactId>spring-boot-maven-plugin</artifactId>
286 <configuration>
287 <includeSystemScope>true</includeSystemScope>
288 <!-- 如果使用 system scope -->
289 </configuration>
290 </plugin>
291 <plugin>
22301115cf6dba22025-03-25 19:06:21 +0800292 <groupId>org.jacoco</groupId>
293 <artifactId>jacoco-maven-plugin</artifactId>
294 <version>0.8.8</version>
295 <executions>
296 <execution>
297 <goals>
298 <goal>prepare-agent</goal>
299 </goals>
300 </execution>
301 <execution>
302 <id>report</id>
303 <phase>test</phase>
304 <goals>
305 <goal>report</goal>
306 </goals>
307 </execution>
308 </executions>
309 </plugin>
310 <plugin>
311 <groupId>org.apache.maven.plugins</groupId>
312 <artifactId>maven-surefire-plugin</artifactId>
313 <version>2.9</version>
314 <configuration>
223011385e9c35a2025-06-04 15:52:45 +0800315 <!--suppress UnresolvedMavenProperty -->
22301115cf6dba22025-03-25 19:06:21 +0800316 <argLine>${surefireArgLine}</argLine>
317 <skipTests>false</skipTests>
318 <includes>
319 <include>**/*Test.java</include>
320 </includes>
321 </configuration>
322 </plugin>
323 <plugin>
324 <groupId>org.apache.maven.plugins</groupId>
325 <artifactId>maven-surefire-report-plugin</artifactId>
326 <version>2.12.2</version>
327 <configuration>
328 <showSuccess>false</showSuccess>
329 </configuration>
330
331 </plugin>
332
333 </plugins>
Cris-KK08f74052025-06-05 20:03:52 +0800334 <resources>
335 <resource>
336 <directory>src/main/resources</directory>
337 <includes>
338 <include>**/*.xml</include>
339 <include>**/*.properties</include>
340 <include>**/*.yml</include>
341 </includes>
342 </resource>
343 <resource>
344 <directory>libs</directory>
345 <includes>
346 <include>*.jar</include>
347 </includes>
348 </resource>
349 </resources>
2230111590135d72025-06-03 17:11:40 +0800350
351
22301115cf6dba22025-03-25 19:06:21 +0800352 </build>
353
354</project>