I was trying to run mvn commands for PetClinic Spring Application available at The problem was Firewall setting and hence my mvn command was not working. It failed to download. In this case where you from behind a proxy, no dependencies will be downloaded.

Solved: Enable proxy setting in Maven