Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Invalid LOC header (bad signature)-Maven exception

Shulou Source: shulou.com Published: 2022-06-03 07:29:10 11月23日 Update

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

Tags: File label low-level information content reason suggestion method time notepad error mirror problem Cheng reference prompt configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Docker Apple OPPO Reno macOS