Failure to transfer dependency, was cached in the local repository

前端 未结 4 872
傲寒
傲寒 2020-12-17 22:47

I am working on maven 2 project on eclipse, and I have the m2e plugin, and I am getting the following error in Eclipse:

Failure to transfer com.thoughtworks.x         


        
相关标签:
4条回答
  • 2020-12-17 23:20

    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.

    0 讨论(0)
  • 2020-12-17 23:23

    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.

    0 讨论(0)
  • 2020-12-17 23:23

    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 :).

    0 讨论(0)
  • 2020-12-17 23:24

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

    0 讨论(0)
提交回复
热议问题