Maven : error in opening zip file when running maven

后端 未结 17 2207
-上瘾入骨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:55

    I had the same problem but previous solutions not work for me. The only solution works for me is the following URL.

    https://enlightensoft.wordpress.com/2013/01/15/maven-error-reading-error-in-opening-zip-file/

    [EDIT]

    Here I explain more about it

    Suppose you got an error like below

    [ERROR] error: error reading C:\Users\user\.m2\repository\org\jdom\jdom\1.1\jdom-1.1.jar; error in opening zip file
    

    Then you have to follow these steps.

    1. First, delete the existing jar C:\Users\user\.m2\repository\org\jdom\jdom\1.1\jdom-1.1.jar
    2. Then you have to manually download relevant jar from Maven central repository. You can download from this link here
    3. After that, you have to copy that downloaded jar into the previous directory.C:\Users\user\.m2\repository\org\jdom\jdom\1.1\

    Then you can build your project using mvn clean install

    hope this will help somebody.

提交回复
热议问题