| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-parent</artifactId> |
| <version>3.4.4</version> |
| <relativePath/> |
| <!-- lookup parent from repository --> |
| </parent> |
| <groupId>com.pt5</groupId> |
| <artifactId>PT-houduan</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <!-- <packaging>pom</packaging> --> |
| <name>PT-houduan</name> |
| <description>PT-houduan</description> |
| <url/> |
| <licenses> |
| <license/> |
| </licenses> |
| <developers> |
| <developer/> |
| </developers> |
| <scm> |
| <connection/> |
| <developerConnection/> |
| <tag/> |
| <url/> |
| </scm> |
| <properties> |
| <java.version>17</java.version> |
| </properties> |
| <dependencies> |
| <!-- <dependency> --> |
| <!-- <groupId>com.turn</groupId> --> |
| <!-- <artifactId>ttorrent-client</artifactId> --> |
| <!-- <version>1.3.0-SNAPSHOT</version> --> |
| <!-- </dependency> --> |
| <!-- <dependency> --> |
| <!-- <groupId>com.turn</groupId> --> |
| <!-- <artifactId>ttorrent-tracker</artifactId> --> |
| <!-- <version>1.3.0-SNAPSHOT</version> --> |
| <!-- </dependency> --> |
| <!-- <dependency> --> |
| <!-- <groupId>com.turn</groupId> --> |
| <!-- <artifactId>ttorrent</artifactId> --> |
| <!-- <version>1.3.0-SNAPSHOT</version> --> |
| <!-- </dependency> --> |
| <!-- <dependency> --> |
| <!-- <groupId>org.springframework.boot</groupId> --> |
| <!-- <artifactId>spring-boot-starter-data-jpa</artifactId> --> |
| <!-- </dependency> --> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-web</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-logging</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-logging</artifactId> |
| </dependency> |
| <!-- 这边开始是tracker的 --> |
| <dependency> |
| <groupId>com.turn</groupId> |
| <artifactId>tracker</artifactId> |
| <version>1.3.0-SNAPSHOT</version> |
| <scope>system</scope> |
| <systemPath>${project.basedir}/lib/ttorrent-tracker-1.3.0-SNAPSHOT.jar</systemPath> |
| <exclusions> |
| <!-- 排除旧版本的 simpleframework --> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.turn</groupId> |
| <artifactId>client</artifactId> |
| <version>1.3.0-SNAPSHOT</version> |
| <scope>system</scope> |
| <systemPath>${project.basedir}/lib/ttorrent-client-1.3.0-SNAPSHOT.jar</systemPath> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- <dependency> --> |
| <!-- <groupId>com.turn</groupId> --> |
| <!-- <artifactId>cli</artifactId> --> |
| <!-- <version>1.3.0-SNAPSHOT</version> --> |
| <!-- <scope>system</scope> --> |
| <!-- <systemPath>${project.basedir}/lib/ttorrent-cli-1.3.0-SNAPSHOT.jar</systemPath> --> |
| <!-- <exclusions> --> |
| <!-- <exclusion> --> |
| <!-- <groupId>org.slf4j</groupId> --> |
| <!-- <artifactId>*</artifactId> --> |
| <!-- </exclusion> --> |
| <!-- <exclusion> --> |
| <!-- <groupId>log4j</groupId> --> |
| <!-- <artifactId>*</artifactId> --> |
| <!-- </exclusion> --> |
| <!-- <exclusion> --> |
| <!-- <groupId>ch.qos.logback</groupId> --> |
| <!-- <artifactId>*</artifactId> --> |
| <!-- </exclusion> --> |
| <!-- </exclusions> --> |
| <!-- </dependency> --> |
| <dependency> |
| <groupId>com.turn</groupId> |
| <artifactId>bencode</artifactId> |
| <version>1.3.0-SNAPSHOT</version> |
| <scope>system</scope> |
| <systemPath>${project.basedir}/lib/ttorrent-bencoding-1.3.0-SNAPSHOT.jar</systemPath> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.turn</groupId> |
| <artifactId>commom</artifactId> |
| <version>1.3.0-SNAPSHOT</version> |
| <scope>system</scope> |
| <systemPath>${project.basedir}/lib/ttorrent-common-1.3.0-SNAPSHOT.jar</systemPath> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.turn</groupId> |
| <artifactId>network</artifactId> |
| <version>1.3.0-SNAPSHOT</version> |
| <scope>system</scope> |
| <systemPath>${project.basedir}/lib/ttorrent-network-1.0.jar</systemPath> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- <dependency> --> |
| <!-- <groupId>org.simpleframework</groupId> --> |
| <!-- <artifactId>simple-http</artifactId> --> |
| <!-- <version>6.0.1</version> --> |
| <!-- </dependency> --> |
| <!-- <dependency> --> |
| <!-- <groupId>org.simpleframework</groupId> --> |
| <!-- <artifactId>simple-transport</artifactId> --> |
| <!-- <version>6.0.1</version> <!– 使用最新稳定版本 –> --> |
| <!-- </dependency> --> |
| <!-- 替换现有的 simple-transport 依赖 --> |
| <dependency> |
| <groupId>org.simpleframework</groupId> |
| <artifactId>simple</artifactId> |
| <version>5.1.6</version> |
| <!-- 与 ttorrent 兼容的版本 --> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- MyBatis-Plus --> |
| <dependency> |
| <groupId>com.baomidou</groupId> |
| <artifactId>mybatis-plus-boot-starter</artifactId> |
| <version>3.5.6</version> |
| </dependency> |
| <dependency> |
| <groupId>org.mybatis</groupId> |
| <artifactId>mybatis-spring</artifactId> |
| <version>3.0.3</version> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-devtools</artifactId> |
| <scope>runtime</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>com.mysql</groupId> |
| <artifactId>mysql-connector-j</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.projectlombok</groupId> |
| <artifactId>lombok</artifactId> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.h2database</groupId> |
| <artifactId>h2</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <!-- <dependency> --> |
| <!-- <groupId>log4j</groupId> --> |
| <!-- <artifactId>log4j</artifactId> --> |
| <!-- <version>1.2.17</version> --> |
| <!-- </dependency> --> |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-mail</artifactId> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| <configuration> |
| <includeSystemScope>true</includeSystemScope> |
| <!-- 包含system范围的依赖 --> |
| <executable>true</executable> |
| <layers> |
| <enabled>true</enabled> |
| </layers> |
| <excludes> |
| <exclude> |
| <groupId>org.projectlombok</groupId> |
| <artifactId>lombok</artifactId> |
| </exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| <includeScope>system</includeScope> |
| <!-- 专门复制system范围的依赖 --> |
| <excludeTransitive>true</excludeTransitive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <annotationProcessorPaths> |
| <path> |
| <groupId>org.projectlombok</groupId> |
| <artifactId>lombok</artifactId> |
| </path> |
| </annotationProcessorPaths> |
| </configuration> |
| </plugin> |
| </plugins> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| <resource> |
| <directory>lib</directory> |
| <targetPath>BOOT-INF/lib/</targetPath> |
| <includes> |
| <include>**/*.jar</include> |
| </includes> |
| </resource> |
| </resources> |
| </build> |
| <!-- <modules> --> |
| <!-- <module>ttorrent</module> --> |
| <!-- </modules> --> |
| </project> |