我正在使用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)
这里出了什么问题?我试图重新启动教程并仔细地遵循它,没有任何改变。我会在这里得到一些帮助。 感谢。
答案 0 :(得分:0)
您的pom文件似乎已损坏(缺少标记,拼写检查等)。您的错误代码段提到war插件配置错误。试着解决这个问题。如果你使用eclipse或一些带有maven插件的ide会更容易,它可以告诉你pom的哪个部分是不正确的,有时也会提出正确的解决方案。