eclipse maven error: Archive for required library in project cannot be read or is not a valid ZIP file

后端 未结 7 2089
北海茫月
北海茫月 2021-01-02 08:08

In an eclipse maven project using spring web mvc, I am getting the following error in the Markers tab:

Archive for required library: \'D:/mypath/.m2/reposi         


        
相关标签:
7条回答
  • 2021-01-02 08:55

    To fix issues like that, let Maven download the files again:

    1. Delete the folder D:/mypath/.m2/repository/javax/transaction/jta
    2. Run Maven with -U so it tries broken downloads again.

    That should try to download the file again and clean up any "residue" in your local repository.

    If Eclipse still complains that the JAR file is corrupt:

    1. Refresh your project (F5 or from the context menu)
    2. Clean the project
    3. Try to open the JAR file. Maybe it's really corrupt.

    If the JAR file is corrupt, delete the folder again and run Maven once more. Note the URLs which Maven used to download the archive and contact the administrator of that site.

    0 讨论(0)
提交回复
热议问题