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

后端 未结 7 2181
北海茫月
北海茫月 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:44

    You can manually go to the repository specified in the error console that is Archive for required library: '**D:/mypath/.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar**' in project 'DocumentManager' cannot be read or is not a valid ZIP file

    Delete the JAR mentioned

    Go to eclipse, right click the project and select run as->maven-install. It will download the right jar file.

提交回复
热议问题