Maven invalid LOC header (bad signature) (转)

When executing mvn test today, it prompts:

Error: Error reading /home/subaochen/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar; invalid LOC header (bad signature)

The solution is to delete the prompt file and let maven download it again.

 

 

 

1. Find the problem 
Right-click pom.xml, run as —> maven install, you will see a report in the console mavenRepository\repos\org\mortbay\jetty\servlet-api-2.5\6.1H.14.1\servlet-api-2.5 -6.1H.14.1.jar error and other similar information about some packages, pom.xml shows red cross.

2. Reason analysis 
The package is not downloaded correctly.

3. Solution 
Find the directory of the package, delete the package and download it again. After re-downloading, test it with maven test , and the red cross disappears.

Original post address: http://blog.rusb.net/articles/2012/11/08/1352366468779.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326633014&siteId=291194637