springframeworkのレポジトリが壊れてた時にやったこと

mvn installした時に

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
Failure executing javac, but could not parse the error:
?G???[~/.m2/repository/org/springframework/spring-core/2.5.6/spring-core-2.5.6.jar ?̓ǂݍ??݃G???[?ł??Bcannot read zip file
?G???[ 1 ??

なんてエラーが出た時には以下のようにして対応 maven centralの方は壊れてないので差し替えます。

rm ~/.m2/repository/org/springframework/spring-core/2.5.6/spring-core-2.5.6.jar
wget -P ~/.m2/repository/org/springframework/spring-core/2.5.6/ http://central.maven.org/maven2/org/springframework/spring-core/2.5.6/spring-core-2.5.6.jar