问题描述
我必须使用spring
创建一个小型网站.所以我选择spring template project
,然后选择new spring mvc project
,无论我尝试如何发生了错误
I have to make small website using spring
. so i chose spring template project
then new spring mvc project
whatever i try there is an error that occurred
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'mTime'.Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'mTime'.
Could not calculate build plan: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-war-plugin:2.1.1 (C:\Users\User01\.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.1.1\maven-war-plugin-2.1.1.jar): invalid LOC header (bad signature)
Failed to parse plugin descriptor for org.apache.maven.plugins:maven-war-plugin:2.1.1 (C:\Users\User01\.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.1.1\maven-war-plugin-2.1.1.jar): invalid LOC header (bad signature)
Could not calculate build plan: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-war-plugin:2.1.1 (C:\Users\User01\.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.1.1\maven-war-plugin-2.1.1.jar): invalid LOC header (bad signature)
Failed to parse plugin descriptor for org.apache.maven.plugins:maven-war-plugin:2.1.1 (C:\Users\User01\.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.1.1\maven-war-plugin-2.1.1.jar): invalid LOC header (bad signature)
我知道maven
包含在spring framework
中,当我检查目录时,罐子在那里.
i know that maven
is included in spring framework
, and when i check the directory, the jars are there.
如何解决此错误?
推荐答案
错误消息的相关部分是:
The relevant part of the error message is:
invalid LOC header (bad signature)
表示某些二进制文件已损坏,很可能是依赖性之一.如果您拥有快速的Internet连接,只需删除整个Maven存储库,然后让Maven重新下载所有依赖项:
which suggests some binary file being broken, most likely one of the dependencies. If you have a fast Internet connection, just delete your whole maven repository and let maven redownload all the dependencies:
rm -rf ~/.m2/repository/*
另请参见
- 运行spring mvc项目时出现一些错误
- Maven :: Invalid CEN(错误签名)无效的LOC(错误签名)
- some error while running spring mvc project
- Maven:: Invalid CEN (bad signature) Invalid LOC (bad signature)
See also
这篇关于构建期间的弹簧错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!