22301080 | a033473 | 2025-05-17 21:38:32 +0800 | [diff] [blame^] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | |
| 5 | <parent> |
| 6 | <groupId>org.sonatype.oss</groupId> |
| 7 | <artifactId>oss-parent</artifactId> |
| 8 | <version>7</version> |
| 9 | </parent> |
| 10 | |
| 11 | <name>Java BitTorrent library</name> |
| 12 | <description> |
| 13 | ttorrent is a pure-Java implementation of the BitTorrent protocol, |
| 14 | including support for several BEPs. It also provides a standalone client, |
| 15 | a tracker and a torrent manipulation utility. |
| 16 | <!-- ttorrent 是 BitTorrent 协议的纯 Java 实现、包括对多个 BEP 的支持。它还提供了一个独立客户端、跟踪器和 torrent 操作工具。--> |
| 17 | </description> |
| 18 | <url>http://turn.github.com/ttorrent/</url> |
| 19 | <groupId>com.turn</groupId> |
| 20 | <artifactId>ttorrent</artifactId> |
| 21 | <version>1.3.0-SNAPSHOT</version> |
| 22 | <packaging>pom</packaging> |
| 23 | |
| 24 | <modules> |
| 25 | <module>network</module> |
| 26 | <module>bencoding</module> |
| 27 | <module>ttorrent-tracker</module> |
| 28 | <module>ttorrent-client</module> |
| 29 | <module>common</module> |
| 30 | <module>tests</module> |
| 31 | <module>test-api</module> |
| 32 | <module>cli</module> |
| 33 | </modules> |
| 34 | |
| 35 | <organization> |
| 36 | <name>Turn, Inc.</name> |
| 37 | <url>http://www.turn.com</url> |
| 38 | </organization> |
| 39 | |
| 40 | <scm> |
| 41 | <connection>scm:git:git://github.com/turn/ttorrent.git</connection> |
| 42 | <url>http://github.com/turn/ttorrent</url> |
| 43 | </scm> |
| 44 | |
| 45 | <licenses> |
| 46 | <license> |
| 47 | <name>Apache Software License version 2.0</name> |
| 48 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 49 | </license> |
| 50 | </licenses> |
| 51 | |
| 52 | <issueManagement> |
| 53 | <system>GitHub</system> |
| 54 | <url>https://github.com/turn/ttorrent/issues</url> |
| 55 | </issueManagement> |
| 56 | |
| 57 | <developers> |
| 58 | <developer> |
| 59 | <id>mpetazzoni</id> |
| 60 | <name>Maxime Petazzoni</name> |
| 61 | <email>mpetazzoni@turn.com</email> |
| 62 | <url>http://www.bulix.org</url> |
| 63 | <organization>Turn, Inc</organization> |
| 64 | <organizationUrl>http://www.turn.com</organizationUrl> |
| 65 | <roles> |
| 66 | <role>maintainer</role> |
| 67 | <role>architect</role> |
| 68 | <role>developer</role> |
| 69 | </roles> |
| 70 | <timezone>-8</timezone> |
| 71 | <properties> |
| 72 | <picUrl>https://secure.gravatar.com/avatar/6f705e0c299bca294444de3a6a3308b3</picUrl> |
| 73 | </properties> |
| 74 | </developer> |
| 75 | </developers> |
| 76 | |
| 77 | <properties> |
| 78 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 79 | <java.version>1.8</java.version> |
| 80 | <maven.compiler.source>${java.version}</maven.compiler.source> |
| 81 | <maven.compiler.target>${java.version}</maven.compiler.target> |
| 82 | </properties> |
| 83 | |
| 84 | <repositories> |
| 85 | <repository> |
| 86 | <id>jboss-thirdparty-releases</id> |
| 87 | <name>JBoss Thirdparty Releases</name> |
| 88 | <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/</url> |
| 89 | </repository> |
| 90 | </repositories> |
| 91 | |
| 92 | <dependencies> |
| 93 | |
| 94 | <dependency> |
| 95 | <groupId>org.mockito</groupId> |
| 96 | <artifactId>mockito-core</artifactId> |
| 97 | <version>2.12.0</version> |
| 98 | </dependency> |
| 99 | <dependency> |
| 100 | <groupId>commons-io</groupId> |
| 101 | <artifactId>commons-io</artifactId> |
| 102 | <version>2.7</version> |
| 103 | </dependency> |
| 104 | |
| 105 | <dependency> |
| 106 | <groupId>commons-codec</groupId> |
| 107 | <artifactId>commons-codec</artifactId> |
| 108 | <version>1.11</version> |
| 109 | </dependency> |
| 110 | |
| 111 | <dependency> |
| 112 | <groupId>org.simpleframework</groupId> |
| 113 | <artifactId>simple</artifactId> |
| 114 | <version>4.1.21</version> |
| 115 | </dependency> |
| 116 | |
| 117 | <dependency> |
| 118 | <groupId>org.slf4j</groupId> |
| 119 | <artifactId>slf4j-log4j12</artifactId> |
| 120 | <version>1.6.4</version> |
| 121 | </dependency> |
| 122 | |
| 123 | <dependency> |
| 124 | <groupId>org.testng</groupId> |
| 125 | <artifactId>testng</artifactId> |
| 126 | <version>6.8.8</version> |
| 127 | <scope>test</scope> |
| 128 | </dependency> |
| 129 | |
| 130 | <dependency> |
| 131 | <groupId>net.sf</groupId> |
| 132 | <artifactId>jargs</artifactId> |
| 133 | <version>1.0</version> |
| 134 | </dependency> |
| 135 | |
| 136 | <dependency> |
| 137 | <groupId>org.jetbrains</groupId> |
| 138 | <artifactId>annotations-java5</artifactId> |
| 139 | <version>RELEASE</version> |
| 140 | </dependency> |
| 141 | |
| 142 | </dependencies> |
| 143 | |
| 144 | <build> |
| 145 | <defaultGoal>package</defaultGoal> |
| 146 | <directory>${basedir}/build</directory> |
| 147 | |
| 148 | <pluginManagement> |
| 149 | <plugins> |
| 150 | <plugin> |
| 151 | <groupId>org.apache.maven.plugins</groupId> |
| 152 | <artifactId>maven-compiler-plugin</artifactId> |
| 153 | <version>3.8.1</version> |
| 154 | <configuration> |
| 155 | <source>${java.version}</source> |
| 156 | <target>${java.version}</target> |
| 157 | </configuration> |
| 158 | </plugin> |
| 159 | </plugins> |
| 160 | </pluginManagement> |
| 161 | |
| 162 | <plugins> |
| 163 | <!-- <plugin>--> |
| 164 | <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| 165 | <!-- <artifactId>maven-compiler-plugin</artifactId>--> |
| 166 | <!-- <version>2.3.2</version>--> |
| 167 | <!-- <configuration>--> |
| 168 | <!-- <source>1.6</source>--> |
| 169 | <!-- <target>1.6</target>--> |
| 170 | <!-- </configuration>--> |
| 171 | <!-- </plugin>--> |
| 172 | |
| 173 | <plugin> |
| 174 | <groupId>org.apache.maven.plugins</groupId> |
| 175 | <artifactId>maven-surefire-plugin</artifactId> |
| 176 | <version>2.12.3</version> |
| 177 | <configuration> |
| 178 | <argLine>-Xmx768M</argLine> |
| 179 | <systemPropertyVariables> |
| 180 | <com.turn.ttorrent.logLevel>${testLogLevel}</com.turn.ttorrent.logLevel> |
| 181 | <java.nio.channels.spi.SelectorProvider>${java.nio.channels.spi.SelectorProvider} |
| 182 | </java.nio.channels.spi.SelectorProvider> |
| 183 | <buildDirectory>${project.build.directory}</buildDirectory> |
| 184 | </systemPropertyVariables> |
| 185 | </configuration> |
| 186 | </plugin> |
| 187 | |
| 188 | <plugin> |
| 189 | <groupId>org.apache.maven.plugins</groupId> |
| 190 | <artifactId>maven-dependency-plugin</artifactId> |
| 191 | <executions> |
| 192 | <execution> |
| 193 | <id>copy-dependencies</id> |
| 194 | <phase>prepare-package</phase> |
| 195 | <goals> |
| 196 | <goal>copy-dependencies</goal> |
| 197 | </goals> |
| 198 | <configuration> |
| 199 | <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| 200 | <overWriteReleases>false</overWriteReleases> |
| 201 | <overWriteSnapshots>false</overWriteSnapshots> |
| 202 | <overWriteIfNewer>true</overWriteIfNewer> |
| 203 | </configuration> |
| 204 | </execution> |
| 205 | </executions> |
| 206 | </plugin> |
| 207 | |
| 208 | <plugin> |
| 209 | <groupId>org.apache.maven.plugins</groupId> |
| 210 | <artifactId>maven-jar-plugin</artifactId> |
| 211 | <configuration> |
| 212 | <archive> |
| 213 | <manifest> |
| 214 | <addClasspath>true</addClasspath> |
| 215 | <!-- <classpathPrefix>lib</classpathPrefix> --> |
| 216 | <!-- <mainClass>test.org.Cliente</mainClass> --> |
| 217 | </manifest> |
| 218 | <manifestEntries> |
| 219 | <Class-Path>lib/</Class-Path> |
| 220 | </manifestEntries> |
| 221 | </archive> |
| 222 | </configuration> |
| 223 | </plugin> |
| 224 | |
| 225 | </plugins> |
| 226 | </build> |
| 227 | </project> |