gpt4 book ai didi

构建期间的 Spring 错误

转载 作者:IT老高 更新时间:2023-10-28 13:48:53 25 4
gpt4 key购买 nike

我必须使用 spring 制作小型网站。所以我选择了 spring template project 然后 new spring mvc project 无论我尝试什么发生错误

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 中,当我检查目录时,jar 就在那里。

我该如何解决这个错误?

最佳答案

错误信息的相关部分是:

invalid LOC header (bad signature)

这表明一些二进制文件被破坏,很可能是依赖项之一。如果您的 Internet 连接速度很快,只需删除整个 maven 存储库并让 maven 重新下载所有依赖项:

rm -rf ~/.m2/repository/*

另见

关于构建期间的 Spring 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13044628/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com