In addition to the excellent advice already offered, you should make sure you've done the
initial Maven setup. By default, analysis will use
http://localhost:9000. If you're not running a server on the analysis machine, that will of course fail. The alternative is to specify server location either globally, as a property in your pom file, or on the command line: -Dsonar.host.url=foo