启动Eureka出现错误:Archive for required library in project cannot be read or is not a valid ZIP file

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.(maven---update project...)

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.

posted @ 2019-05-20 16:56  jason47  阅读(463)  评论(0编辑  收藏  举报