Complement to @BOC's answer.
If you are behind some company vpn, you probably need to set it to:
pluginManagement { repositories { maven { url <local_repository_url> } } }