Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Invalid LOC header (bad signature)-Maven exception

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report