spring error during build

前端 未结 9 2193
独厮守ぢ
独厮守ぢ 2020-12-24 14:23

I have to make small website using spring. so i chose spring template project then new spring mvc project whatever i try there

9条回答
  •  猫巷女王i
    2020-12-24 15:01

    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
    

提交回复
热议问题