Problem
Sometimes when trying to download dependencies on Maven, I get the following error.
“Resolution will not be reattempted until the update interval of central has elapsed or updates are forced…”
This usually happens when I have the artifacts wrongly named on the local repository or when there is a connection problem with the remote repository.
The problem doesn’t seem to go away once the artifact naming on the local repository has been fixed or when the connection problem has been resolved. You have to wait until the update interval has passed before Maven will attempt to download the dependencies again.
Solution
The solution is to force an update by using the -U option.
$mvn -U compile