ttorrent icon indicating copy to clipboard operation
ttorrent copied to clipboard

v2.0 how to use as a library in IDEA or Eclipse?

Open SnailOk opened this issue 7 years ago • 9 comments

SnailOk avatar Dec 13 '18 13:12 SnailOk

Unfortunately i cannot release new version without private keys but you can download it from jitpack repo. See my last comment here: https://github.com/mpetazzoni/ttorrent/issues/225

Dead-off avatar Dec 13 '18 13:12 Dead-off

or you don't have build tool?

Dead-off avatar Dec 13 '18 13:12 Dead-off

Unfortunately i cannot release new version without private keys but you can download it from jitpack repo. See my last comment here: #225

in fact ,I used v1.5 jar before.But I meet a problem ,I couldn't download file .I guess I am behind NAT, InetAddress.getLocalHost() is 192.168.0.108,so I don't know how to solve

SnailOk avatar Dec 14 '18 06:12 SnailOk

NAT it not a problem. Other peers cannot connect to you but you still can connect to peers

Dead-off avatar Dec 14 '18 10:12 Dead-off

NAT it not a problem. Other peers cannot connect to you but you still can connect to peers

yes,I found I could download some video ,but it need to spend too long time.I want to know whether there is a way to solve NAT,if I need to share a seed ? And will it be successful sharing in the LAN?Finally, thank you for answering my question.

SnailOk avatar Dec 15 '18 02:12 SnailOk

or you don't have build tool? thank you ,I know how to build it now.

SnailOk avatar Dec 17 '18 13:12 SnailOk

for developer ttorrent: pls add in .gitignore: .project .classpath .settings

RumoEL avatar Jan 20 '21 11:01 RumoEL

It is still not well described how to do this jitpack repo works. Thus ... add this to your pom.xml:

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
        <repository>
            <id>jboss-thirdparty-releases</id>
            <name>JBoss Thirdparty Releases</name>
            <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/</url>
        </repository>
    </repositories>

and...

    <dependencies>
        <dependency>
            <groupId>com.github.mpetazzoni</groupId>
            <artifactId>ttorrent</artifactId>
            <version>ttorrent-2.0</version>
        </dependency>
    </dependencies>

Done!

prampec avatar Jun 10 '21 07:06 prampec

With Gradle:

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    implementation 'com.github.mpetazzoni:ttorrent:ttorrent-2.0'
}

Also for Maven, this should be (it won't build without <version>3.1.0</version>):

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>

syslogic avatar Mar 02 '22 07:03 syslogic