mpetazzoni / ttorrent

BitTorrent Java library with tracker and download client
http://mpetazzoni.github.com/ttorrent/
Apache License 2.0
1.38k stars 502 forks source link

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

Open SnailOk opened 5 years ago

Dead-off commented 5 years ago

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 commented 5 years ago

or you don't have build tool?

SnailOk commented 5 years ago

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

Dead-off commented 5 years ago

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

SnailOk commented 5 years ago

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 commented 5 years ago

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

RumoEL commented 3 years ago

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

prampec commented 3 years ago

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!

syslogic commented 2 years ago

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>