22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 3 | 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"> |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 5 | <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> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 13 | <version>2.6.0</version> |
| 14 | <relativePath/> <!-- lookup parent from repository --> |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 15 | </parent> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 16 | |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 17 | <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> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 115 | <version>1.7.30</version> <!-- 版本可以根据需要调整 --> |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 116 | </dependency> |
| 117 | <dependency> |
| 118 | <groupId>ch.qos.logback</groupId> |
| 119 | <artifactId>logback-classic</artifactId> |
| 120 | <version>1.2.3</version> <!-- 版本可以根据需要调整 --> |
| 121 | </dependency> |
| 122 | <dependency> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 123 | |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 124 | <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> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 133 | <dependency> |
| 134 | <groupId>com.baidubce</groupId> |
| 135 | <artifactId>qianfan</artifactId> |
| 136 | <version>0.1.1</version> |
| 137 | </dependency> |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 138 | <dependency> |
| 139 | <groupId>org.springframework.boot</groupId> |
| 140 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 141 | </dependency> |
JinGe | fe5140c | 2025-06-06 20:07:42 +0800 | [diff] [blame] | 142 | <!-- <dependency>--> |
| 143 | <!-- <groupId>junit</groupId>--> |
| 144 | <!-- <artifactId>junit</artifactId>--> |
| 145 | <!-- <version>4.12</version>--> |
| 146 | <!-- <scope>test</scope>--> |
| 147 | <!-- </dependency>--> |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 148 | <dependency> |
JinGe | fe5140c | 2025-06-06 20:07:42 +0800 | [diff] [blame] | 149 | <groupId>org.junit.jupiter</groupId> |
| 150 | <artifactId>junit-jupiter</artifactId> |
| 151 | <version>5.10.2</version> |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 152 | <scope>test</scope> |
| 153 | </dependency> |
JinGe | fe5140c | 2025-06-06 20:07:42 +0800 | [diff] [blame] | 154 | |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 155 | <dependency> |
| 156 | <groupId>org.mockito</groupId> |
| 157 | <artifactId>mockito-core</artifactId> |
| 158 | <scope>test</scope> |
| 159 | </dependency> |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 160 | <dependency> |
| 161 | <groupId>org.springframework.boot</groupId> |
| 162 | <artifactId>spring-boot-starter-test</artifactId> |
| 163 | <scope>test</scope> |
| 164 | </dependency> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 165 | |
| 166 | <dependency> |
| 167 | <groupId>jakarta.persistence</groupId> |
| 168 | <artifactId>jakarta.persistence-api</artifactId> |
| 169 | <version>3.1.0</version> |
| 170 | </dependency> |
| 171 | |
| 172 | <dependency> |
| 173 | <groupId>org.springframework.boot</groupId> |
| 174 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 175 | </dependency> |
| 176 | |
| 177 | <dependency> |
| 178 | <groupId>jakarta.transaction</groupId> |
| 179 | <artifactId>jakarta.transaction-api</artifactId> |
| 180 | <version>2.0.0</version> <!-- 使用最新版本 --> |
| 181 | </dependency> |
| 182 | |
| 183 | <dependency> |
| 184 | <groupId>org.hibernate</groupId> |
| 185 | <artifactId>hibernate-core</artifactId> |
| 186 | <version>5.6.7.Final</version> <!-- 与 Jakarta 兼容的版本 --> |
| 187 | </dependency> |
| 188 | |
| 189 | <dependency> |
| 190 | <groupId>mysql</groupId> |
| 191 | <artifactId>mysql-connector-java</artifactId> |
| 192 | <version>8.0.27</version> <!-- 使用适合你的版本 --> |
| 193 | </dependency> |
| 194 | |
Cris-KK | 08f7405 | 2025-06-05 20:03:52 +0800 | [diff] [blame] | 195 | <dependency> |
| 196 | <groupId>groupId</groupId> |
| 197 | <artifactId>echo-backend-ttorrent-bencoding</artifactId> |
| 198 | <version>1.0</version> |
| 199 | <scope>system</scope> |
| 200 | <systemPath>${project.basedir}/libs/ttorrent-bencoding-1.3.0-SNAPSHOT.jar</systemPath> |
| 201 | </dependency> |
| 202 | <dependency> |
| 203 | <groupId>groupId</groupId> |
| 204 | <artifactId>echo-backend-ttorrent-cli</artifactId> |
| 205 | <version>1.0</version> |
| 206 | <scope>system</scope> |
| 207 | <systemPath>${project.basedir}/libs/ttorrent-cli-1.3.0-SNAPSHOT.jar</systemPath> |
| 208 | </dependency> |
| 209 | <dependency> |
| 210 | <groupId>groupId</groupId> |
| 211 | <artifactId>echo-backend-ttorrent-common</artifactId> |
| 212 | <version>1.0</version> |
| 213 | <scope>system</scope> |
| 214 | <systemPath>${project.basedir}/libs/ttorrent-common-1.3.0-SNAPSHOT.jar</systemPath> |
| 215 | </dependency> |
| 216 | <dependency> |
| 217 | <groupId>groupId</groupId> |
| 218 | <artifactId>echo-backend-ttorrent-network</artifactId> |
| 219 | <version>1.0</version> |
| 220 | <scope>system</scope> |
| 221 | <systemPath>${project.basedir}/libs/ttorrent-network-1.0.jar</systemPath> |
| 222 | </dependency> |
| 223 | <dependency> |
| 224 | <groupId>groupId</groupId> |
| 225 | <artifactId>echo-backend-ttorrent-client</artifactId> |
| 226 | <version>1.0</version> |
| 227 | <scope>system</scope> |
| 228 | <systemPath>${project.basedir}/libs/ttorrent-client-1.3.0-SNAPSHOT.jar</systemPath> |
| 229 | </dependency> |
| 230 | <dependency> |
| 231 | <groupId>groupId</groupId> |
| 232 | <artifactId>echo-backend-ttorrent-tracker</artifactId> |
| 233 | <version>1.0</version> |
| 234 | <scope>system</scope> |
| 235 | <systemPath>${project.basedir}/libs/ttorrent-tracker-1.3.0-SNAPSHOT.jar</systemPath> |
| 236 | </dependency> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 237 | |
22301115 | 90135d7 | 2025-06-03 17:11:40 +0800 | [diff] [blame] | 238 | <dependency> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 239 | <groupId>com.github.pagehelper</groupId> |
| 240 | <artifactId>pagehelper-spring-boot-starter</artifactId> |
| 241 | <version>1.4.7</version> |
22301115 | 90135d7 | 2025-06-03 17:11:40 +0800 | [diff] [blame] | 242 | </dependency> |
| 243 | |
| 244 | <dependency> |
| 245 | <groupId>cn.dev33</groupId> |
| 246 | <artifactId>sa-token-spring-boot-starter</artifactId> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 247 | <version>1.38.0</version> <!-- 请确认使用最新版本或与你的Spring Boot版本匹配 --> |
22301115 | 90135d7 | 2025-06-03 17:11:40 +0800 | [diff] [blame] | 248 | </dependency> |
| 249 | |
| 250 | |
22301138 | 2036038 | 2025-05-06 17:40:59 +0800 | [diff] [blame] | 251 | <dependency> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 252 | <groupId>org.simpleframework</groupId> |
| 253 | <artifactId>simple</artifactId> |
| 254 | <version>4.1.21</version> |
22301138 | 2036038 | 2025-05-06 17:40:59 +0800 | [diff] [blame] | 255 | </dependency> |
Cris-KK | 08f7405 | 2025-06-05 20:03:52 +0800 | [diff] [blame] | 256 | <dependency> |
| 257 | <groupId>jakarta.servlet</groupId> |
| 258 | <artifactId>jakarta.servlet-api</artifactId> |
| 259 | <version>6.0.0</version> |
| 260 | <scope>provided</scope> <!-- 若在Servlet容器中运行,使用provided --> |
| 261 | </dependency> |
22301138 | 2036038 | 2025-05-06 17:40:59 +0800 | [diff] [blame] | 262 | |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 263 | |
| 264 | |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 265 | </dependencies> |
| 266 | |
| 267 | |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 268 | |
| 269 | |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 270 | <build> |
| 271 | <plugins> |
| 272 | <plugin> |
| 273 | <groupId>org.springframework.boot</groupId> |
| 274 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 275 | </plugin> |
| 276 | <plugin> |
| 277 | <groupId>org.apache.maven.plugins</groupId> |
| 278 | <artifactId>maven-compiler-plugin</artifactId> |
| 279 | <version>3.8.1</version> |
| 280 | <configuration> |
| 281 | <source>17</source> |
| 282 | <target>17</target> |
| 283 | <compilerArgs> |
| 284 | <arg>--add-opens</arg> |
| 285 | <arg>jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg> |
| 286 | </compilerArgs> |
| 287 | </configuration> |
| 288 | |
| 289 | </plugin> |
| 290 | <plugin> |
YelinCui | 5159348 | 2025-06-04 18:35:16 +0800 | [diff] [blame] | 291 | <groupId>org.springframework.boot</groupId> |
| 292 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 293 | <configuration> |
| 294 | <includeSystemScope>true</includeSystemScope> |
| 295 | <!-- 如果使用 system scope --> |
| 296 | </configuration> |
| 297 | </plugin> |
| 298 | <plugin> |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 299 | <groupId>org.jacoco</groupId> |
| 300 | <artifactId>jacoco-maven-plugin</artifactId> |
| 301 | <version>0.8.8</version> |
| 302 | <executions> |
| 303 | <execution> |
| 304 | <goals> |
| 305 | <goal>prepare-agent</goal> |
| 306 | </goals> |
| 307 | </execution> |
| 308 | <execution> |
| 309 | <id>report</id> |
| 310 | <phase>test</phase> |
| 311 | <goals> |
| 312 | <goal>report</goal> |
| 313 | </goals> |
| 314 | </execution> |
| 315 | </executions> |
| 316 | </plugin> |
| 317 | <plugin> |
| 318 | <groupId>org.apache.maven.plugins</groupId> |
| 319 | <artifactId>maven-surefire-plugin</artifactId> |
| 320 | <version>2.9</version> |
| 321 | <configuration> |
22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame] | 322 | <!--suppress UnresolvedMavenProperty --> |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 323 | <argLine>${surefireArgLine}</argLine> |
| 324 | <skipTests>false</skipTests> |
| 325 | <includes> |
| 326 | <include>**/*Test.java</include> |
| 327 | </includes> |
| 328 | </configuration> |
| 329 | </plugin> |
| 330 | <plugin> |
| 331 | <groupId>org.apache.maven.plugins</groupId> |
| 332 | <artifactId>maven-surefire-report-plugin</artifactId> |
| 333 | <version>2.12.2</version> |
| 334 | <configuration> |
| 335 | <showSuccess>false</showSuccess> |
| 336 | </configuration> |
| 337 | |
| 338 | </plugin> |
| 339 | |
| 340 | </plugins> |
Cris-KK | 08f7405 | 2025-06-05 20:03:52 +0800 | [diff] [blame] | 341 | <resources> |
| 342 | <resource> |
| 343 | <directory>src/main/resources</directory> |
| 344 | <includes> |
| 345 | <include>**/*.xml</include> |
| 346 | <include>**/*.properties</include> |
| 347 | <include>**/*.yml</include> |
| 348 | </includes> |
| 349 | </resource> |
| 350 | <resource> |
| 351 | <directory>libs</directory> |
| 352 | <includes> |
| 353 | <include>*.jar</include> |
| 354 | </includes> |
| 355 | </resource> |
| 356 | </resources> |
22301115 | 90135d7 | 2025-06-03 17:11:40 +0800 | [diff] [blame] | 357 | |
| 358 | |
22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 359 | </build> |
| 360 | |
| 361 | </project> |