In my case, though the pom.xml was a standard configuration, we had the proxy installed to pull in all dependencies, and so was not able to access the localhost/127.0.0.1 via the proxy. So did a small change in parent's pom.xml, where in I added <useProxy>false</useProxy> after the <targetURL> tag.