Failure to transfer dependency, was cached in the local repository

坚强是说给别人听的谎言 提交于 2019-11-29 06:44:58

problem fixed after deleting the .lastUpdated file and the dependency then downloading it again.

Liping Huang

You can use -U parameter to force a check for the updated releases and snapshots on remote repositories, and resolve this issue.

Actually you can find this solution by using mvn -h to show Maven help.

Error occured beacuse of Old cache of Maven tool is present in your directory. So you must delete it. Go to C\User\"your user name"\m2 then delete it.

nitin khatawate

If you are using Eclipse:

  • Go to Window->Preferences->Maven:
    check the download artifact source code, artifact javadoc, update maven project on startup.

  • In the folder that contains pom.xml, run:
    mvn clean install -U

It worked for me :).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!