Failure to transfer dependency, was cached in the local repository
Error occured because 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.
Problem fixed after deleting the .lastUpdated
file and the dependency then downloading it again.