I have to make small website using spring. so i chose spring template project then new spring mvc project whatever i try there
for me running the following script multiple times worked. It looks for CEN and LOC header line issues in the mvn result and asks for deleting the jars one by one. After a few deletions and reruns things should be working again. I didn't dare to fully automate.
#!/bin/sh
# fix issues like:
#[ERROR] error: error reading /Users/wf/.m2/repository/org/docx4j/xhtmlrenderer/1.0.0/xhtmlrenderer-1.0.0.jar; invalid LOC header (bad signature)
# WF 2013-10-27
mvnlog=/tmp/mvnlog$$
mvnproblem=/tmp/mvnproblem$$
mvn install | tee $mvnlog
grep "invalid ... header" $mvnlog > $mvnproblem
for culprit in `cat $mvnproblem | cut -d" " -f5 | cut -d ";" -f1`
do
echo "fix mvn LOC header issue with $culprit? yes/no/abort"
read answer
case $answer in
y*|Y*) rm $culprit;;
n*|N*) ;;
*) exit 1;
esac
done
rm -f $mvnproblem
rm -f $mvnlog