upload功能
Change-Id: Iad725ce3e2edd913531bf11705bf51000dde010d
diff --git a/pom.xml b/pom.xml
index 22f8f1c..ea99d5b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,6 +11,7 @@
<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/>
@@ -30,13 +31,191 @@
<java.version>17</java.version>
</properties>
<dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-jpa</artifactId>
- </dependency>
+<!-- <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 -->
@@ -51,6 +230,7 @@
<version>3.0.3</version>
</dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
@@ -77,11 +257,51 @@
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>
+<!-- <dependency>-->
+<!-- <groupId>log4j</groupId>-->
+<!-- <artifactId>log4j</artifactId>-->
+<!-- <version>1.2.17</version>-->
+<!-- </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>
@@ -93,19 +313,24 @@
</annotationProcessorPaths>
</configuration>
</plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- </exclude>
- </excludes>
- </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>