blob: 20b8e7122eb33361f51b56a4feb6d5323eab4dd0 [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"
22301126e1131602025-06-04 11:30:10 +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>
22301126e1131602025-06-04 11:30:10 +080013 <version>2.6.0</version> <!-- 使用你希望的Spring Boot版本 -->
14 <relativePath /> <!-- lookup parent from repository -->
22301115cf6dba22025-03-25 19:06:21 +080015 </parent>
22301115cf6dba22025-03-25 19:06:21 +080016 <properties>
17 <maven.compiler.source>17</maven.compiler.source>
18 <maven.compiler.target>17</maven.compiler.target>
19 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22301126e1131602025-06-04 11:30:10 +080020 <sa-token.version>1.37.0</sa-token.version>
22301115cf6dba22025-03-25 19:06:21 +080021 </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>
22301126e1131602025-06-04 11:30:10 +080081 <dependency>
82 <groupId>com.github.xiaoymin</groupId>
83 <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
84 <version>4.5.0</version>
85 </dependency>
86 <dependency>
87 <groupId>javax.validation</groupId>
88 <artifactId>validation-api</artifactId>
89 <version>2.0.1.Final</version>
90 </dependency>
22301115cf6dba22025-03-25 19:06:21 +080091 <!-- Spring Web MVC -->
92 <dependency>
93 <groupId>org.springframework</groupId>
94 <artifactId>spring-webmvc</artifactId>
95 </dependency>
96 <!-- Spring AOP -->
97 <dependency>
98 <groupId>org.springframework</groupId>
99 <artifactId>spring-aop</artifactId>
100 </dependency>
101 <dependency>
102 <groupId>org.springframework.boot</groupId>
103 <artifactId>spring-boot-starter-mail</artifactId>
104 </dependency>
105 <dependency>
106 <groupId>org.apache.commons</groupId>
107 <artifactId>commons-lang3</artifactId>
108 <version>3.12.0</version>
109 </dependency>
110 <dependency>
111 <groupId>com.alibaba</groupId>
112 <artifactId>fastjson</artifactId>
113 <version>1.2.39</version>
114 </dependency>
115 <dependency>
116 <groupId>org.projectlombok</groupId>
117 <artifactId>lombok</artifactId>
118 <version>1.18.30</version> <!-- 确保使用的是最新版本 -->
119 <scope>provided</scope>
120 </dependency>
22301126e1131602025-06-04 11:30:10 +0800121 <dependency>
122 <groupId>com.github.pagehelper</groupId>
123 <artifactId>pagehelper-spring-boot-starter</artifactId>
124 <version>1.4.7</version>
125 </dependency>
126
22301115cf6dba22025-03-25 19:06:21 +0800127
128 <dependency>
129 <groupId>org.slf4j</groupId>
130 <artifactId>slf4j-api</artifactId>
22301126e1131602025-06-04 11:30:10 +0800131 <version>1.7.32</version> <!-- 版本可以根据需要调整 -->
22301115cf6dba22025-03-25 19:06:21 +0800132 </dependency>
133 <dependency>
134 <groupId>ch.qos.logback</groupId>
135 <artifactId>logback-classic</artifactId>
136 <version>1.2.3</version> <!-- 版本可以根据需要调整 -->
137 </dependency>
138 <dependency>
139 <groupId>commons-fileupload</groupId>
140 <artifactId>commons-fileupload</artifactId>
141 <version>1.4</version>
142 </dependency>
143
144 <dependency>
145 <groupId>org.springframework.boot</groupId>
146 <artifactId>spring-boot-starter-validation</artifactId>
147 </dependency>
22301126e1131602025-06-04 11:30:10 +0800148
22301115cf6dba22025-03-25 19:06:21 +0800149 <dependency>
150 <groupId>org.springframework.boot</groupId>
151 <artifactId>spring-boot-starter-webflux</artifactId>
152 </dependency>
153 <dependency>
154 <groupId>junit</groupId>
155 <artifactId>junit</artifactId>
156 <version>4.12</version>
157 <scope>test</scope>
158 </dependency>
22301126e1131602025-06-04 11:30:10 +0800159
22301115cf6dba22025-03-25 19:06:21 +0800160 <dependency>
161 <groupId>org.springframework.boot</groupId>
162 <artifactId>spring-boot-starter-test</artifactId>
163 <scope>test</scope>
164 </dependency>
YelinCuifdf4ed72025-05-26 11:49:36 +0800165 <dependency>
166 <groupId>com.turn</groupId>
167 <artifactId>ttorrent-common</artifactId>
168 <version>1.3.0-SNAPSHOT</version>
169 </dependency>
22301126e1131602025-06-04 11:30:10 +0800170
YelinCuifdf4ed72025-05-26 11:49:36 +0800171 <!-- ttorrent -->
172 <dependency>
173 <groupId>com.turn</groupId>
174 <artifactId>ttorrent-client</artifactId>
175 <version>1.3.0-SNAPSHOT</version>
176 </dependency>
177 <dependency>
178 <groupId>com.turn</groupId>
179 <artifactId>ttorrent-cli</artifactId>
180 <version>1.3.0-SNAPSHOT</version>
181 </dependency>
182 <dependency>
183 <groupId>com.turn</groupId>
184 <artifactId>ttorrent-network</artifactId>
185 <version>1.0</version>
186 </dependency>
187 <dependency>
188 <groupId>com.turn</groupId>
189 <artifactId>ttorrent-test-api</artifactId>
190 <version>1.0</version>
191 </dependency>
192 <dependency>
193 <groupId>com.turn</groupId>
194 <artifactId>ttorrent-bencoding</artifactId>
195 <version>1.3.0-SNAPSHOT</version>
196 </dependency>
197 <dependency>
198 <groupId>com.turn</groupId>
199 <artifactId>ttorrent-tests</artifactId>
200 <version>1.3.0-SNAPSHOT</version>
201 </dependency>
202 <dependency>
203 <groupId>com.turn</groupId>
204 <artifactId>ttorrent-tracker</artifactId>
205 <version>1.3.0-SNAPSHOT</version>
206 </dependency>
207 <dependency>
22301126e1131602025-06-04 11:30:10 +0800208 <groupId>com.github.xiaoymin</groupId>
209 <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
210 <version>4.5.0</version>
YelinCuifdf4ed72025-05-26 11:49:36 +0800211 </dependency>
212
213 <dependency>
214 <groupId>cn.dev33</groupId>
215 <artifactId>sa-token-spring-boot-starter</artifactId>
22301126e1131602025-06-04 11:30:10 +0800216 <version>${sa-token.version}</version>
YelinCuifdf4ed72025-05-26 11:49:36 +0800217 </dependency>
218
219
220
22301126e1131602025-06-04 11:30:10 +0800221
222 <dependency>
223 <groupId>jakarta.persistence</groupId>
224 <artifactId>jakarta.persistence-api</artifactId>
225 <version>3.1.0</version>
226 </dependency>
227
22301115cf6dba22025-03-25 19:06:21 +0800228 </dependencies>
229
230
231 <build>
232 <plugins>
233 <plugin>
234 <groupId>org.springframework.boot</groupId>
235 <artifactId>spring-boot-maven-plugin</artifactId>
236 </plugin>
237 <plugin>
238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-compiler-plugin</artifactId>
240 <version>3.8.1</version>
241 <configuration>
242 <source>17</source>
243 <target>17</target>
244 <compilerArgs>
245 <arg>--add-opens</arg>
246 <arg>jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
247 </compilerArgs>
248 </configuration>
249
250 </plugin>
251 <plugin>
252 <groupId>org.jacoco</groupId>
253 <artifactId>jacoco-maven-plugin</artifactId>
254 <version>0.8.8</version>
255 <executions>
256 <execution>
257 <goals>
258 <goal>prepare-agent</goal>
259 </goals>
260 </execution>
261 <execution>
262 <id>report</id>
263 <phase>test</phase>
264 <goals>
265 <goal>report</goal>
266 </goals>
267 </execution>
268 </executions>
269 </plugin>
270 <plugin>
271 <groupId>org.apache.maven.plugins</groupId>
272 <artifactId>maven-surefire-plugin</artifactId>
273 <version>2.9</version>
274 <configuration>
22301126e1131602025-06-04 11:30:10 +0800275 <!--suppress
276 UnresolvedMavenProperty -->
22301115cf6dba22025-03-25 19:06:21 +0800277 <argLine>${surefireArgLine}</argLine>
278 <skipTests>false</skipTests>
279 <includes>
280 <include>**/*Test.java</include>
281 </includes>
282 </configuration>
283 </plugin>
284 <plugin>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-surefire-report-plugin</artifactId>
287 <version>2.12.2</version>
288 <configuration>
289 <showSuccess>false</showSuccess>
290 </configuration>
291
292 </plugin>
293
294 </plugins>
22301126e1131602025-06-04 11:30:10 +0800295<!-- <resources>-->
296<!-- <resource>-->
297<!-- <directory>src/main/java</directory>-->
298<!-- <includes>-->
299<!-- <include>**/*.xml</include>-->
300<!-- </includes>-->
301<!-- </resource>-->
302<!-- <resource>-->
303<!-- <directory>libs</directory>-->
304<!-- <includes>-->
305<!-- <include>*.jar</include>-->
306<!-- </includes>-->
307<!-- </resource>-->
308<!-- </resources>-->
309
310
22301115cf6dba22025-03-25 19:06:21 +0800311 </build>
312
313</project>