The building process hangs very often


(Baxter von Tali) #1

FAILURE: Build failed with an exception.

  • What went wrong: Could not resolve all dependencies for configuration ‘:classpath’. > Could not resolve group:com.mycila.maven-license-plugin, module:maven-license-plugin, version:1.10.b1.

Required by:

:Apktool:unspecified > nl.javadude.gradle.plugins:license-gradle-plugin:0.5.0

Could not resolve group:com.mycila, module:parent-pom, version:5.

Could not HEAD ‘http://repo1.maven.org/maven2/com/mycila/parent-pom/5/parent-pom-5.pom’.

Connection to http://repo1.maven.org refused

But If I try to open http://repo1.maven.org/maven2/com/mycila/parent-pom/5/parent-pom-5.pom in browser it’s ok. It happens constantly - about 90% of builds.


(Luke Daley) #2

Can you please run with -i and provide the output for one of these failing cases.


(Baxter von Tali) #3

:brut.apktool:apktool-lib:compileJava Download http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.pom Download http://repo1.maven.org/maven2/org/yaml/snakeyaml/1.11/snakeyaml-1.11.pom Download http://repo1.maven.org/maven2/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.pom Download http://repo1.maven.org/maven2/xmlunit/xmlunit/1.3/xmlunit-1.3.pom Download http://repo1.maven.org/maven2/com/google/guava/guava/12.0/guava-12.0.pom Download http://repo1.maven.org/maven2/com/google/guava/guava-parent/12.0/guava-parent-12.0.pom Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/com/google/guava/guava-parent/12.0/guava-parent-12.0.jar] Download http://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.pom Download http://repo1.maven.org/maven2/org/apache/commons/commons-parent/22/commons-parent-22.pom

FAILURE: Build failed with an exception.

  • What went wrong: Could not resolve all dependencies for configuration ‘:brut.apktool:apktool-lib:compile’. > Could not resolve group:org.apache.commons, module:commons-lang3, version:3.1.

Required by:

Apktool.brut.apktool:apktool-lib:unspecified

Could not resolve group:org.apache.commons, module:commons-parent, version:22.

Could not HEAD ‘http://repo1.maven.org/maven2/org/apache/commons/commons-parent/22/commons-parent-22.jar’.

Connection to http://repo1.maven.org refused

  • Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 30.558 secs


(Luke Daley) #4

That doesn’t look like ‘-i’ output. There should be quite a bit of logging.


(Baxter von Tali) #5

One more:

http://pastebin.com/zEixJMRc


(Luke Daley) #6

What version of Gradle are you using? I’m seeing some stuff in that log that looks kinda old.


(Baxter von Tali) #7

The latest one - 1.3