Reputation: 83
This is the error I get when I was trying to create my first spring application in 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)
Have error in pom.xml..
Please help i'm new in Spring...
Upvotes: 0
Views: 4626
Reputation: 5668
Remove your .m2
folder and then fire the mvn install
command.
Invalid LOC header
This issue is related to some bad jar present in the m2 folder that got corrupted during download
Upvotes: 0
Reputation: 1092
binary file being broken, most likely one of the dependencies.just delete your whole maven repository and let maven redownload all the dependencies:
delete C:\Users\user.m2\repository
https://stackoverflow.com/a/13044692/2334391 http://tech.deepumohan.com/2012/07/maven-invalid-cen-bad-signature-invalid.html
Upvotes: 1