Invalid LOC header (bad signature)-Maven exception
Exception message:
Error: error reading D:\ dev-tool\ maven-repository\ org\ springframework\ boot\ spring-boot\ 1.4.2.RELEASE\ spring-boot-1.4.2.RELEASE.jar; invalid LOC header (bad signature)
Cause of exception:
The package was not downloaded completely and correctly.
Solution:
Delete the prompted file and ask maven to download it again.
Other suggestions
Transfer the maven download source from abroad to Ali mirror source, as long as it takes a little time to reduce the emergence of similar low-level problems.
Source swap reference:
Locate the configuration file for maven: settings.xml file
After opening it in notepad, find the tag and add the following content inside the tag:
AliMaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central