title: Please check the parameter 'sonar.host.url'
body: <p>I want to enable hudson+sonar so I did with following steps:</p>
  
  <p>1.Installed sonar 3.4.1 and started sonar server .Now I can access <code>http://localhost:9000</code> on browser.</p>
  
  <p>2.In configuration on hudson I have provided sonar installation details but only database details are provided over there like database login,password ,url etc.</p>
  
  <p>2.Created new job in hudson ,used the git repository where currently my project is ,and in post build actions I have selected sonar.</p>
  
  <p>But I am going to build the job it fetch the contents from git repositoty correctly, but I am getting following exception:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project Engile: Sonar server can not be reached at http://localhost:9000. Please check the parameter 'sonar.host.url'. -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project Engile: Sonar server can not be reached at http://localhost:9000. Please check the parameter 'sonar.host.url'.
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Sonar server can not be reached at http://localhost:9000. Please check the parameter 'sonar.host.url'.
  </code></pre>
  
  <p>I have not added anything in settings.xml file.I have no clue abount this issue,can Anybody give me some solution...</p>
  
  <p><strong>1.Hudson configuration:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/Ql7Ba.png" alt="enter image description here"></p>
  
  <p><strong>2.Hudson job configuration:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/98rOs.png" alt="enter image description here"></p>