2014-02-14 57 views
0

此構建Spring應用程序是我得到的,當我試圖創建在STS示值誤差在pom.xml中,而在STS

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

我的第一個春天應用在pom.xml中有錯誤的錯誤..

請幫助我在春季新...

+0

過程中被損壞這似乎並不有什麼做春天。 –

+0

然後用maven做任何事情? – Akhil

+0

Google對'無效的LOC頭(壞簽名)'。 –

回答

1

二進制文件被破壞,很可能是dependencies.just之一刪除你的整個Maven倉庫,讓行家重新下載所有的依賴:

刪除C:\用戶\ user.m2 \庫

https://stackoverflow.com/a/13044692/2334391 http://tech.deepumohan.com/2012/07/maven-invalid-cen-bad-signature-invalid.html

+0

你有春季4的任何示例項目 – Akhil

+0

如果你是一個初學者我sugest你不去與示例項目。去一些教程自己構建項目(環境),那麼它會很容易。 – jos

0

刪除您.m2文件夾,然後火mvn install命令。

無效的LOC頭

這個問題涉及到一些存在於M2文件夾壞罐子是下載