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