title: why maven-sonar-plugin doesnot exist?
body: <p><br> 
  I am facing a similar issue as in <a href="https://issues.apache.org/jira/browse/MNG-4001" rel="nofollow">https://issues.apache.org/jira/browse/MNG-4001</a>
  but with maven-sonar-plugin. <br>Versions i am using are: 
  Jenkins - 1.580.1, SonarQube-plugin in Jenkins -2.1, tried with Sonar 4.0 and SonarQube 4.5.1 but faced same error, sonar-maven-plugin: 2.6 /2.7.1 (tried both) <br>I face this error when i use Sonar post build step in my Jenkins configuration and this is frequent issue seen in different jobs<br>
  Error is </p>
  
  <pre><code> [INFO] Searching repository for plugin with prefix: 'sonar'.
   [INFO] artifact org.apache.maven.plugins:maven-sonar-plugin: checking for updates from central
   [INFO] artifact org.apache.maven.plugins:maven-sonar-plugin: checking for updates from snapshots
   [INFO] ------------------------------------------------------------------------
   [ERROR] BUILD ERROR
   [INFO] ------------------------------------------------------------------------
   [INFO] The plugin 'org.apache.maven.plugins:maven-sonar-plugin' does not exist or no valid version could be found
   [INFO] ------------------------------------------------------------------------
   [INFO] Trace
   org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-sonar-plugin' does not exist or no valid version could be found
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1569)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:462)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:175)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
       at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
       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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
   Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-sonar-plugin' does not exist or no valid version could be found
       at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229)
       at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
       at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:179)
       at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
       ... 15 more
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 2 seconds
   [INFO] Finished at: Wed Dec 16 13:13:35 CET 2015
   [INFO] Final Memory: 7M/238M
   [INFO] ------------------------------------------------------------------------
   Sonar analysis completed: FAILURE
   Build step 'Sonar' changed build result to FAILURE
   Build step 'Sonar' marked build as failure
   Finished: FAILURE
  </code></pre>
  
  <p>why am i facing this error ? is the issue(bug) with Sonarqube plugin in Jenkins?
  <br> for time being to avoid this error i have deleted Sonar post build step and added the sonar analysis step in maven goals for maven 3.0.4</p>
  
  <pre><code> Maven goals :: clean install -Dmaven.test.skip=true -Dsonar.jdbc.url=jdbc:postgresql://sonardb.test.com:5555/sonar -Dsonar.host.url=http://localhost:9000/sonar org.codehaus.mojo:sonar-maven-plugin:2.6:sonar &lt;br&gt; 
  </code></pre>
  
  <p>but this is a temporary solution, I would like to use Sonar post build step in my job configuration and not face this error.
  <br>Thanks for your help</p>