0

我正在使用 STS、Spring 3.1 RC 和 Maven。我正在关注本教程: http: //manueljordan.wordpress.com/2011/12/12/creating-a-spring-web-mvc-project-with-springsource-tool-suite/
我正在尝试将我的项目清理为在教程中,在修改 Spring 版本并添加存储库之后。我收到此错误:

    Errors occurred during the build.
    Errors running builder 'Maven Project Builder' on project 'PracticeApp'.
    Could not calculate build plan: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-war-plugin:2.1.1 (C:\Users\Joe\.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\Joe\.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\Joe\.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\Joe\.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.1.1\maven-war-plugin-2.1.1.jar): invalid LOC header (bad signature)

这里出了什么问题?我试图重新启动教程并仔细遵循它,但没有任何改变。我会很感激这里的一点帮助。谢谢。

4

1 回答 1

0

您的 pom 文件似乎已损坏(缺少标签、拼写检查等)。您的错误片段提到战争插件配置错误。尝试解决这个问题。如果您使用 eclipse 或带有 maven 插件的 ide 会更容易,它可以告诉您 pom 的哪个部分不正确,有时也建议正确的解决方案。

于 2012-12-10T02:51:24.257 回答