Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
562 views
in Technique[技术] by (71.8m points)

Maven : error in opening zip file when running maven

[ERROR] error: error reading C:Userssuresh.m2
epositoryorgjdomjdom1.1jdom-1.1.jar; error in opening zip file
[ERROR] error: error reading C:Userssuresh.m2
epositoryjavaxservletservlet-api2.5servlet-api-2.5.jar; error in opening zip file
[ERROR] error: error reading C:Userssuresh.m2
epositoryorgapachecxfcxf-rt-bindings-http2.2.1cxf-rt-bindings-http-2.2.1.jar; error in opening zip file
[ERROR] error: error reading C:Userssuresh.m2
epositoryorgcodehausjrajra1.0-alpha-4jra-1.0-alpha-4.jar; error in opening zip file
[ERROR] error: error reading C:Userssuresh.m2
epositoryorgapachecxfcxf-api2.2.1cxf-api-2.2.1.jar; error in opening zip file
[ERROR] error: error reading C:Userssuresh.m2
epositoryorgapachecxfcxf-common-utilities2.2.1cxf-common-utilities-2.2.1.jar; error in opening zip file
[INFO] 44 errors

How to resolve this error while running mvn clean install?

And I see that, starting from servlet-api, no packages are being created inside the local repository on my disk.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Probably, contents of the JAR files in your local .m2 repository are HTML saying "301 Moved Permanently". It seems that mvn does not handle "301 Moved Permanently" properly as expected. In such a case, download the JAR files manually from somewhere (the central repository, for example) and put them into your .m2 repository.

See also:

asm-3.1.jar; error in opening zip file
http://darutk-oboegaki.blogspot.jp/2012/07/asm-31jar-error-in-opening-zip-file.html


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...