修改pom.xml
Change-Id: I618a580ce86b6a09aa11c726483af11849310752
diff --git a/pom.xml b/pom.xml
index 92ca907..122744c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -184,90 +184,49 @@
<artifactId>mysql-connector-java</artifactId>
<version>8.0.27</version> <!-- 使用适合你的版本 -->
</dependency>
- <dependency>
- <groupId>com.turn</groupId>
- <artifactId>ttorrent-common</artifactId>
- <version>1.3.0-SNAPSHOT</version>
- </dependency>
- <!-- ttorrent -->
- <dependency>
- <groupId>com.turn</groupId>
- <artifactId>ttorrent-client</artifactId>
- <version>1.3.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.turn</groupId>
- <artifactId>ttorrent-cli</artifactId>
- <version>1.3.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.turn</groupId>
- <artifactId>ttorrent-network</artifactId>
- <version>1.0</version>
- </dependency>
- <dependency>
- <groupId>com.turn</groupId>
- <artifactId>ttorrent-test-api</artifactId>
- <version>1.0</version>
- </dependency>
- <dependency>
- <groupId>com.turn</groupId>
- <artifactId>ttorrent-bencoding</artifactId>
- <version>1.3.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.turn</groupId>
- <artifactId>ttorrent-tests</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-common</artifactId>-->
-<!-- <version>1.3.0-SNAPSHOT</version>-->
-<!-- </dependency>-->
-<!-- <!– ttorrent –>-->
-<!-- <dependency>-->
-<!-- <groupId>com.turn</groupId>-->
-<!-- <artifactId>ttorrent-client</artifactId>-->
-<!-- <version>1.3.0-SNAPSHOT</version>-->
-<!-- </dependency>-->
-<!-- <dependency>-->
-<!-- <groupId>com.turn</groupId>-->
-<!-- <artifactId>ttorrent-cli</artifactId>-->
-<!-- <version>1.3.0-SNAPSHOT</version>-->
-<!-- </dependency>-->
-<!-- <dependency>-->
-<!-- <groupId>com.turn</groupId>-->
-<!-- <artifactId>ttorrent-network</artifactId>-->
-<!-- <version>1.0</version>-->
-<!-- </dependency>-->
-<!-- <dependency>-->
-<!-- <groupId>com.turn</groupId>-->
-<!-- <artifactId>ttorrent-test-api</artifactId>-->
-<!-- <version>1.0</version>-->
-<!-- </dependency>-->
-<!-- <dependency>-->
-<!-- <groupId>com.turn</groupId>-->
-<!-- <artifactId>ttorrent-bencoding</artifactId>-->
-<!-- <version>1.3.0-SNAPSHOT</version>-->
-<!-- </dependency>-->
-<!-- <dependency>-->
-<!-- <groupId>com.turn</groupId>-->
-<!-- <artifactId>ttorrent-tests</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>groupId</groupId>
+ <artifactId>echo-backend-ttorrent-bencoding</artifactId>
+ <version>1.0</version>
+ <scope>system</scope>
+ <systemPath>${project.basedir}/libs/ttorrent-bencoding-1.3.0-SNAPSHOT.jar</systemPath>
+ </dependency>
+ <dependency>
+ <groupId>groupId</groupId>
+ <artifactId>echo-backend-ttorrent-cli</artifactId>
+ <version>1.0</version>
+ <scope>system</scope>
+ <systemPath>${project.basedir}/libs/ttorrent-cli-1.3.0-SNAPSHOT.jar</systemPath>
+ </dependency>
+ <dependency>
+ <groupId>groupId</groupId>
+ <artifactId>echo-backend-ttorrent-common</artifactId>
+ <version>1.0</version>
+ <scope>system</scope>
+ <systemPath>${project.basedir}/libs/ttorrent-common-1.3.0-SNAPSHOT.jar</systemPath>
+ </dependency>
+ <dependency>
+ <groupId>groupId</groupId>
+ <artifactId>echo-backend-ttorrent-network</artifactId>
+ <version>1.0</version>
+ <scope>system</scope>
+ <systemPath>${project.basedir}/libs/ttorrent-network-1.0.jar</systemPath>
+ </dependency>
+ <dependency>
+ <groupId>groupId</groupId>
+ <artifactId>echo-backend-ttorrent-client</artifactId>
+ <version>1.0</version>
+ <scope>system</scope>
+ <systemPath>${project.basedir}/libs/ttorrent-client-1.3.0-SNAPSHOT.jar</systemPath>
+ </dependency>
+ <dependency>
+ <groupId>groupId</groupId>
+ <artifactId>echo-backend-ttorrent-tracker</artifactId>
+ <version>1.0</version>
+ <scope>system</scope>
+ <systemPath>${project.basedir}/libs/ttorrent-tracker-1.3.0-SNAPSHOT.jar</systemPath>
+ </dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
@@ -287,6 +246,12 @@
<artifactId>simple</artifactId>
<version>4.1.21</version>
</dependency>
+ <dependency>
+ <groupId>jakarta.servlet</groupId>
+ <artifactId>jakarta.servlet-api</artifactId>
+ <version>6.0.0</version>
+ <scope>provided</scope> <!-- 若在Servlet容器中运行,使用provided -->
+ </dependency>
@@ -366,20 +331,22 @@
</plugin>
</plugins>
- <!-- <resources>-->
- <!-- <resource>-->
- <!-- <directory>src/main/java</directory>-->
- <!-- <includes>-->
- <!-- <include>**/*.xml</include>-->
- <!-- </includes>-->
- <!-- </resource>-->
- <!-- <resource>-->
- <!-- <directory>libs</directory>-->
- <!-- <includes>-->
- <!-- <include>*.jar</include>-->
- <!-- </includes>-->
- <!-- </resource>-->
- <!-- </resources>-->
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*.xml</include>
+ <include>**/*.properties</include>
+ <include>**/*.yml</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>libs</directory>
+ <includes>
+ <include>*.jar</include>
+ </includes>
+ </resource>
+ </resources>
</build>