maven 無法導入jar包

自己搭建項目的時候由於操作問題(下載jia包時強行關閉 )導致後期無法導入依賴包:
spring-webmvc jar包:

Failure to transfer org.springframework:spring-webmvc:jar:4.0.6.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework:spring-webmvc:jar:4.0.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.

解決辦法:
1,刪除maven倉庫中的spring-webmvc jar包文件夾
2,update maven project(重新更新依賴包,並且編譯項目)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章