maven install throw “error in opening zip file” only after the second try

后端 未结 4 1568
囚心锁ツ
囚心锁ツ 2021-02-15 14:40

I try to run maven install on my project with some dependencies:


    log4j
    log4j         


        
4条回答
  •  野性不改
    2021-02-15 15:21

    In my case It was giving below error

    error: error reading C:\Users\ppatel4.m2\repository\org\apache\xalan\xalan\2.7. 1\xalan-2.7.1.jar; error in opening zip file

    Below are the steps I did to fix it.

    1. Manually download xalan-2.7.1.jar
    2. Remove all files of: ~/.m2/repository/org/apache/xalan/xalan/2.7.1/
    3. Copy the jar which is manually downloaded into the location: ~/.m2/repository/org/apache/xalan/xalan/2.7.1/

    $ cp xalan-2.7.1.jar ~/.m2/repository/org/apache/xalan/xalan/2.7.1/
    

    Its Done… Try to execute your mvn clean install command.

提交回复
热议问题