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
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.
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.
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 :).
problem fixed after deleting the .lastUpdated file and the dependency then downloading it again.