I'm using terracotta 3.7.0 and I recently deleted my entire .m2 dir, so I have to re-install it. But the build is stuck with error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project my-cache: Compilation failure
[ERROR] error: error reading C:\Users\me\.m2\repository\net\sf\ehcache\ehcache-terracotta\2.6.0\ehcache-terracotta-2.6.0.jar; error in opening zip file
[ERROR] -> [Help 1]
Does anyone know what might cause this?
UPDATED: when I delete the entire .m2 again, I get this error. NOT terracotta anymore, but maven-jar-plugin. I have a feeling something must've gone wrong with maven.
[ERROR] Failed to parse plugin descriptor for org.apache.maven.plugins:maven-jar-plugin:2.4 (C:\Users\me\.m2\repository\org\apache\maven\plugins\maven-jar-plugin\2.4\maven-jar-plugin-2.4.jar):error in opening zip file -> [Help 1]
org.apache.maven.plugin.PluginDescriptorParsingException: Failed to parse plugin descriptor for
And this too
[WARNING] Checksum validation failed, expected <html> but is 757a33a0a05930dd579796da4bb82a61f612f49a for http://archiva.openqa.org/repository/releases/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2.4.jar
Does this ring any bell for anyone?
Lots of things could possibly cause this, including:
There are (obvious) things you could try to diagnose these.
It is also possible that some a maven config or repository issue is preventing maven from downloading the file. But there should be something in the output to say that.
You could also try running the
mvn
command with verbose logging enabled; usemvn --help
to list the command line options.That looks like you have managed to fetch a corrupt checksum. Or more precisely, that the remote server gave you an error page when you attempted to fetch the checksum.