Maven : error in opening zip file when running maven

后端 未结 17 2205
-上瘾入骨i
-上瘾入骨i 2020-11-29 03:28
[ERROR] error: error reading C:\\Users\\suresh\\.m2\\repository\\org\\jdom\\jdom\\1.1\\jdom-1.1.jar; error in opening zip file
[ERROR] error: error reading C:\\Users         


        
17条回答
  •  孤街浪徒
    2020-11-29 03:58

    This error occurs because of some file corruption. But we don't need to delete whole .m2 folder. Instead find which jar files get corrupted by looking at the error message in the console. And delete only the folders which contains those jar files.

    Like in the question :

    1. C:\Users\suresh\.m2\repository\org\jdom\jdom\
    2. C:\Users\suresh\.m2\repository\javax\servlet\servlet-api\
    3. C:\Users\suresh\.m2\repository\org\apache\cxf\cxf-rt-bindings-http
    4. C:\Users\suresh\.m2\repository\org\codehaus\jra\jra
    5. C:\Users\suresh\.m2\repository\org\apache\cxf\cxf-api
    6. C:\Users\suresh\.m2\repository\org\apache\cxf\cxf-common-utilities

    Delete these folders. Then run.

    mvn clean install -U

提交回复
热议问题