I was trying to compile the source and the build seems to be failing for default hadoop 1.0.4 as well as 2.0.3
1.0.4
$./gradlew
....
Could not resolve all dependencies for configuration ':optional'.
> Could not download artifact 'com.sun.xml.bind:jaxb-impl:2.2.3-1@jar'
> Could not download artifact 'com.sun.xml.bind:jaxb-impl:2.2.3-1@jar'
> Premature end of Content-Length delimited message body (expected: 890168; received: 0
2.0.3:
./gradlew -Pdistro=hadoop20 build
compileJava
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve group:commons-daemon, module:commons-daemon, version:1.0.3.
Required by:
org.springframework.data:spring-data-hadoop:1.0.1.BUILD-SNAPSHOT > org.apache.hadoop:hadoop-hdfs:2.0.3-alpha
> java.text.ParseException: inconsistent module descriptor file found in 'CachedResource: /home/hadoop/.gradle/caches/artifacts-15/filestore/commons-daemon/commons-daemon/1.0.3/pom/bdbf06d29718fbb259e2de51fc2ab91d4a92a800/commons-daemon-1.0.3.pom for http://repo1.maven.org/maven2/common....0.3.pom': bad organisation: expected='commons-daemon' found='org.apache.commons';
> Could not HEAD 'http://repo.springsource.org/libs-snapshot/commons-daemon/commons-daemon/1.0.3/commons-daemon-1.0.3.pom'. Received status code 401 from server: Unauthorized
1.0.4
$./gradlew
....
Could not resolve all dependencies for configuration ':optional'.
> Could not download artifact 'com.sun.xml.bind:jaxb-impl:2.2.3-1@jar'
> Could not download artifact 'com.sun.xml.bind:jaxb-impl:2.2.3-1@jar'
> Premature end of Content-Length delimited message body (expected: 890168; received: 0
2.0.3:
./gradlew -Pdistro=hadoop20 build
compileJava
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve group:commons-daemon, module:commons-daemon, version:1.0.3.
Required by:
org.springframework.data:spring-data-hadoop:1.0.1.BUILD-SNAPSHOT > org.apache.hadoop:hadoop-hdfs:2.0.3-alpha
> java.text.ParseException: inconsistent module descriptor file found in 'CachedResource: /home/hadoop/.gradle/caches/artifacts-15/filestore/commons-daemon/commons-daemon/1.0.3/pom/bdbf06d29718fbb259e2de51fc2ab91d4a92a800/commons-daemon-1.0.3.pom for http://repo1.maven.org/maven2/common....0.3.pom': bad organisation: expected='commons-daemon' found='org.apache.commons';
> Could not HEAD 'http://repo.springsource.org/libs-snapshot/commons-daemon/commons-daemon/1.0.3/commons-daemon-1.0.3.pom'. Received status code 401 from server: Unauthorized