There might have been some intermittent Internet issue or something.
I was facing the same problem yesterday.
Updating the the project
(On STS or Eclipse, right click on the project and Maven -> Update project
-> tick everything except Offline)
after sometime fixed it.