blob: ea99d5bd1bc0caa4bd29e4a81c170df6138cde63 [file] [log] [blame]
刘嘉昕f28ea232025-04-15 16:55:43 +08001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <groupId>org.springframework.boot</groupId>
7 <artifactId>spring-boot-starter-parent</artifactId>
8 <version>3.4.4</version>
9 <relativePath/> <!-- lookup parent from repository -->
10 </parent>
11 <groupId>com.pt5</groupId>
12 <artifactId>PT-houduan</artifactId>
13 <version>0.0.1-SNAPSHOT</version>
刘嘉昕88d3f7d2025-06-04 11:54:09 +080014<!-- <packaging>pom</packaging>-->
刘嘉昕f28ea232025-04-15 16:55:43 +080015 <name>PT-houduan</name>
16 <description>PT-houduan</description>
17 <url/>
18 <licenses>
19 <license/>
20 </licenses>
21 <developers>
22 <developer/>
23 </developers>
24 <scm>
25 <connection/>
26 <developerConnection/>
27 <tag/>
28 <url/>
29 </scm>
30 <properties>
31 <java.version>17</java.version>
32 </properties>
33 <dependencies>
刘嘉昕88d3f7d2025-06-04 11:54:09 +080034<!-- <dependency>-->
35<!-- <groupId>com.turn</groupId>-->
36<!-- <artifactId>ttorrent-client</artifactId>-->
37<!-- <version>1.3.0-SNAPSHOT</version>-->
38<!-- </dependency>-->
39<!-- <dependency>-->
40<!-- <groupId>com.turn</groupId>-->
41<!-- <artifactId>ttorrent-tracker</artifactId>-->
42<!-- <version>1.3.0-SNAPSHOT</version>-->
43<!-- </dependency>-->
44<!-- <dependency>-->
45<!-- <groupId>com.turn</groupId>-->
46<!-- <artifactId>ttorrent</artifactId>-->
47<!-- <version>1.3.0-SNAPSHOT</version>-->
48<!-- </dependency>-->
49
50
51<!-- <dependency>-->
52<!-- <groupId>org.springframework.boot</groupId>-->
53<!-- <artifactId>spring-boot-starter-data-jpa</artifactId>-->
54<!-- </dependency>-->
刘嘉昕f28ea232025-04-15 16:55:43 +080055 <dependency>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-web</artifactId>
刘嘉昕88d3f7d2025-06-04 11:54:09 +080058 <exclusions>
59 <exclusion>
60 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-starter-logging</artifactId>
62 </exclusion>
63 </exclusions>
64 </dependency>
65 <dependency>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-logging</artifactId>
68 </dependency>
69
70 <!-- 这边开始是tracker的-->
71 <dependency>
72 <groupId>com.turn</groupId>
73 <artifactId>tracker</artifactId>
74 <version>1.3.0-SNAPSHOT</version>
75 <scope>system</scope>
76 <systemPath>${project.basedir}/lib/ttorrent-tracker-1.3.0-SNAPSHOT.jar</systemPath>
77 <exclusions>
78 <!-- 排除旧版本的 simpleframework -->
79 <exclusion>
80 <groupId>org.slf4j</groupId>
81 <artifactId>*</artifactId>
82 </exclusion>
83 <exclusion>
84 <groupId>log4j</groupId>
85 <artifactId>*</artifactId>
86 </exclusion>
87 <exclusion>
88 <groupId>ch.qos.logback</groupId>
89 <artifactId>*</artifactId>
90 </exclusion>
91 </exclusions>
92 </dependency>
93 <dependency>
94 <groupId>com.turn</groupId>
95 <artifactId>client</artifactId>
96 <version>1.3.0-SNAPSHOT</version>
97 <scope>system</scope>
98 <systemPath>${project.basedir}/lib/ttorrent-client-1.3.0-SNAPSHOT.jar</systemPath>
99 <exclusions>
100 <exclusion>
101 <groupId>org.slf4j</groupId>
102 <artifactId>*</artifactId>
103 </exclusion>
104 <exclusion>
105 <groupId>log4j</groupId>
106 <artifactId>*</artifactId>
107 </exclusion>
108 <exclusion>
109 <groupId>ch.qos.logback</groupId>
110 <artifactId>*</artifactId>
111 </exclusion>
112 </exclusions>
113 </dependency>
114<!-- <dependency>-->
115<!-- <groupId>com.turn</groupId>-->
116<!-- <artifactId>cli</artifactId>-->
117<!-- <version>1.3.0-SNAPSHOT</version>-->
118<!-- <scope>system</scope>-->
119<!-- <systemPath>${project.basedir}/lib/ttorrent-cli-1.3.0-SNAPSHOT.jar</systemPath>-->
120<!-- <exclusions>-->
121<!-- <exclusion>-->
122<!-- <groupId>org.slf4j</groupId>-->
123<!-- <artifactId>*</artifactId>-->
124<!-- </exclusion>-->
125<!-- <exclusion>-->
126<!-- <groupId>log4j</groupId>-->
127<!-- <artifactId>*</artifactId>-->
128<!-- </exclusion>-->
129<!-- <exclusion>-->
130<!-- <groupId>ch.qos.logback</groupId>-->
131<!-- <artifactId>*</artifactId>-->
132<!-- </exclusion>-->
133<!-- </exclusions>-->
134<!-- </dependency>-->
135 <dependency>
136 <groupId>com.turn</groupId>
137 <artifactId>bencode</artifactId>
138 <version>1.3.0-SNAPSHOT</version>
139 <scope>system</scope>
140 <systemPath>${project.basedir}/lib/ttorrent-bencoding-1.3.0-SNAPSHOT.jar</systemPath>
141 <exclusions>
142 <exclusion>
143 <groupId>org.slf4j</groupId>
144 <artifactId>*</artifactId>
145 </exclusion>
146 <exclusion>
147 <groupId>log4j</groupId>
148 <artifactId>*</artifactId>
149 </exclusion>
150 <exclusion>
151 <groupId>ch.qos.logback</groupId>
152 <artifactId>*</artifactId>
153 </exclusion>
154 </exclusions>
155 </dependency>
156 <dependency>
157 <groupId>com.turn</groupId>
158 <artifactId>commom</artifactId>
159 <version>1.3.0-SNAPSHOT</version>
160 <scope>system</scope>
161 <systemPath>${project.basedir}/lib/ttorrent-common-1.3.0-SNAPSHOT.jar</systemPath>
162 <exclusions>
163 <exclusion>
164 <groupId>org.slf4j</groupId>
165 <artifactId>*</artifactId>
166 </exclusion>
167 <exclusion>
168 <groupId>log4j</groupId>
169 <artifactId>*</artifactId>
170 </exclusion>
171 <exclusion>
172 <groupId>ch.qos.logback</groupId>
173 <artifactId>*</artifactId>
174 </exclusion>
175 </exclusions>
176 </dependency>
177 <dependency>
178 <groupId>com.turn</groupId>
179 <artifactId>network</artifactId>
180 <version>1.3.0-SNAPSHOT</version>
181 <scope>system</scope>
182 <systemPath>${project.basedir}/lib/ttorrent-network-1.0.jar</systemPath>
183 <exclusions>
184 <exclusion>
185 <groupId>org.slf4j</groupId>
186 <artifactId>*</artifactId>
187 </exclusion>
188 <exclusion>
189 <groupId>log4j</groupId>
190 <artifactId>*</artifactId>
191 </exclusion>
192 <exclusion>
193 <groupId>ch.qos.logback</groupId>
194 <artifactId>*</artifactId>
195 </exclusion>
196 </exclusions>
197 </dependency>
198<!-- <dependency>-->
199<!-- <groupId>org.simpleframework</groupId>-->
200<!-- <artifactId>simple-http</artifactId>-->
201<!-- <version>6.0.1</version>-->
202<!-- </dependency>-->
203<!-- <dependency>-->
204<!-- <groupId>org.simpleframework</groupId>-->
205<!-- <artifactId>simple-transport</artifactId>-->
206<!-- <version>6.0.1</version> &lt;!&ndash; 使用最新稳定版本 &ndash;&gt;-->
207<!-- </dependency>-->
208 <!-- 替换现有的 simple-transport 依赖 -->
209 <dependency>
210 <groupId>org.simpleframework</groupId>
211 <artifactId>simple</artifactId>
212 <version>5.1.6</version> <!-- 与 ttorrent 兼容的版本 -->
213 <exclusions>
214 <exclusion>
215 <groupId>*</groupId>
216 <artifactId>*</artifactId>
217 </exclusion>
218 </exclusions>
刘嘉昕f28ea232025-04-15 16:55:43 +0800219 </dependency>
220
221 <!-- MyBatis-Plus -->
222 <dependency>
223 <groupId>com.baomidou</groupId>
224 <artifactId>mybatis-plus-boot-starter</artifactId>
225 <version>3.5.6</version>
226 </dependency>
227 <dependency>
228 <groupId>org.mybatis</groupId>
229 <artifactId>mybatis-spring</artifactId>
230 <version>3.0.3</version>
231 </dependency>
232
刘嘉昕88d3f7d2025-06-04 11:54:09 +0800233
刘嘉昕f28ea232025-04-15 16:55:43 +0800234 <dependency>
235 <groupId>org.springframework.boot</groupId>
236 <artifactId>spring-boot-devtools</artifactId>
237 <scope>runtime</scope>
238 <optional>true</optional>
239 </dependency>
240 <dependency>
241 <groupId>com.mysql</groupId>
242 <artifactId>mysql-connector-j</artifactId>
243 <scope>runtime</scope>
244 </dependency>
245 <dependency>
246 <groupId>org.projectlombok</groupId>
247 <artifactId>lombok</artifactId>
248 <optional>true</optional>
249 </dependency>
250 <dependency>
251 <groupId>org.springframework.boot</groupId>
252 <artifactId>spring-boot-starter-test</artifactId>
253 <scope>test</scope>
254 </dependency>
255 <dependency>
256 <groupId>com.h2database</groupId>
257 <artifactId>h2</artifactId>
258 <scope>test</scope>
259 </dependency>
刘嘉昕88d3f7d2025-06-04 11:54:09 +0800260<!-- <dependency>-->
261<!-- <groupId>log4j</groupId>-->
262<!-- <artifactId>log4j</artifactId>-->
263<!-- <version>1.2.17</version>-->
264<!-- </dependency>-->
刘嘉昕f28ea232025-04-15 16:55:43 +0800265 </dependencies>
266
267 <build>
268 <plugins>
269 <plugin>
刘嘉昕88d3f7d2025-06-04 11:54:09 +0800270 <groupId>org.springframework.boot</groupId>
271 <artifactId>spring-boot-maven-plugin</artifactId>
272 <configuration>
273 <includeSystemScope>true</includeSystemScope> <!-- 包含system范围的依赖 -->
274 <executable>true</executable>
275 <layers>
276 <enabled>true</enabled>
277 </layers>
278 <excludes>
279 <exclude>
280 <groupId>org.projectlombok</groupId>
281 <artifactId>lombok</artifactId>
282 </exclude>
283 </excludes>
284 </configuration>
285 </plugin>
286 <plugin>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-dependency-plugin</artifactId>
289 <executions>
290 <execution>
291 <id>copy-dependencies</id>
292 <phase>prepare-package</phase>
293 <goals>
294 <goal>copy-dependencies</goal>
295 </goals>
296 <configuration>
297 <outputDirectory>${project.build.directory}/lib</outputDirectory>
298 <includeScope>system</includeScope> <!-- 专门复制system范围的依赖 -->
299 <excludeTransitive>true</excludeTransitive>
300 </configuration>
301 </execution>
302 </executions>
303 </plugin>
304 <plugin>
刘嘉昕f28ea232025-04-15 16:55:43 +0800305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-compiler-plugin</artifactId>
307 <configuration>
308 <annotationProcessorPaths>
309 <path>
310 <groupId>org.projectlombok</groupId>
311 <artifactId>lombok</artifactId>
312 </path>
313 </annotationProcessorPaths>
314 </configuration>
315 </plugin>
刘嘉昕f28ea232025-04-15 16:55:43 +0800316 </plugins>
刘嘉昕88d3f7d2025-06-04 11:54:09 +0800317 <resources>
318 <resource>
319 <directory>src/main/resources</directory>
320 <filtering>true</filtering>
321 </resource>
322 <resource>
323 <directory>lib</directory>
324 <targetPath>BOOT-INF/lib/</targetPath>
325 <includes>
326 <include>**/*.jar</include>
327 </includes>
328 </resource>
329 </resources>
刘嘉昕f28ea232025-04-15 16:55:43 +0800330 </build>
331
刘嘉昕88d3f7d2025-06-04 11:54:09 +0800332<!-- <modules>-->
333<!-- <module>ttorrent</module>-->
334<!-- </modules>-->
335
刘嘉昕f28ea232025-04-15 16:55:43 +0800336</project>