Chapter 11 fails to build #16

apennebaker opened this Issue Aug 27, 2013 · 2 comments


None yet

2 participants


$ mvn package -DskipTests -Dhadoop.version=1.1.1
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.515s
[INFO] Finished at: Tue Aug 27 09:58:41 EDT 2013
[INFO] Final Memory: 19M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ch11: Compilation failure
[ERROR] error: error reading /Users/apennebaker/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar; cannot read zip file
[ERROR] -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ch11


$ specs java os

specs 0.4

mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac"



java -version
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.8.4 (12E55)
tomwhite commented Jan 9, 2014

Sorry again for the delay in replying.

It looks like it could be a corrupt JAR file. Try deleting /Users/apennebaker/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar from your local mvn cache and try again.

Works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment