天天看點

Maven —— was cached in the local repository, resolution will not be reattempted until the update ...解決

問題

重新拉取Maven依賴時,提示was cached in the local repository, resolution will not be reattempted until the update ...

無法拉取。

解決

原因是本地已經存在相關jar,不會再次拉取。

如果想要重新拉取

  1. 删除 *.lastUpdated
  2. 删除 _remote.repositories
  3. maven 重新拉取

網上很多教程隻寫了第一步,沒有第二步。隻删除*.lastUpdated拉取會依舊失敗的。