Current Gradle HEAD tries parsing .zip as XML/pom

issue-acknowledged
gradle-3458

(Jörn Huxhorn) #1

Commit 1ad2067edd620bdb418c1ee5fde8bea2f33a4546

[Fatal Error] docbook-xsl-1.75.2.zip:2:1: Content is not allowed in prolog.
Finished at: 2016-07-05T10:31:13.195

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':runtime'.
> Could not resolve com.google.guava:guava-jdk5:14.0.1.
  Required by:
      :buildSrc:unspecified
   > Could not resolve com.google.guava:guava-jdk5:14.0.1.
      > Could not parse POM /Users/huxi/.gradle/caches/modules-2/files-2.1/docbook/docbook-xsl/1.75.2/1d9a652c68cd5fd211ec8d8ae6e83c1ef4bbddc7/docbook-xsl-1.75.2.zip
         > Content is not allowed in prolog.

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

BUILD FAILED

Stacktrace: http://pastebin.com/k3hJb5x9

Gradle Version: 1ad2067edd620bdb418c1ee5fde8bea2f33a4546
Operating System: Mac OS X 10.11.5

Execute ./gradlew clean.


(Jörn Huxhorn) #2

rm -r ~/.gradles/caches fixed the immediate problem. I have no idea how my cache got corrupted.


(Lari Hotari) #3

Thanks for reporting the issue. This might be the same problem as https://issues.gradle.org/browse/GRADLE-3458 and other forum discussion Build failure caused by MetaDataParseException due to attempting to parse a .jar file as a Maven pom .