Sonar version 3.6 for local analysis

Forward "Sonar version 3.6 message is required to perform local analysis" when trying to use local sonar analysis in eclipse.

I just installed the last of CodeHaus

where the compatibility matrix says it's 3.6+.

I am using Eclipse: Juno 4.2, with the following plugins installed:

  • Sonar Java Analyzer 3.2.0.20130627-1142-RELEASE org.sonar.ide.eclipse.jdt.feature.feature.group SonarSource

  • Sonar m2e Connector 3.2.0.20130627-1142-RELEASE org.sonar.ide.eclipse.m2e.feature.feature.group SonarSource

Any ideas?

+4
source share
3 answers

Are you using sonarqube server?

I do not think you can use the plugin if the server is not working to connect to the analysis.

http://docs.sonarqube.org/display/SONAR/SonarQube+in+Eclipse

For the purposes you are looking at, I am using personal use, you could probably leave with a standalone instance of SonarQube using the built-in H2 database.

Local analysis parameters

Parameters for setting up local analysis can be set in different places. Here is the hierarchy of parameters:

  • Parameters defined in the SonarQube web interface

  • Parameters set in the pom.xml file (only for Maven projects, with m2e) will override the parameters defined in the user interface

  • The parameters defined in Eclipse override the parameters defined in the pom file (go to Window> Settings> Sonar> Local analysis of properties)

  • Parameters defined at the project level in Eclipse override parameters defined at the Eclipse level (right-click on the project and go to "Properties"> "Sonar"> "Local Analysis Properties")

Plugin exception

Some plugins (useless for local analysis) can be skipped during local analysis due to the sonar.dryRun.excludePlugins property (Settings> Configuration> General settings> General).

The default value is "devcockpit, pdfreport, report, scmactivity, views". For example, to skip the Build Stability plugin (due to https://jira.codehaus.org/browse/SONARIDE-346 ), set the property to "devcockpit, pdfreport, report, scmactivity, views, buildstability".

Here is where I found this information: Starting Qube Sonar in Eclipse

Double check settings

You can also double check your settings. The plugin will install a sonar instance for local analysis on localhost: 9000. If you remove this, it can lead to errors. You must have two servers listed on the configuration page, local host and remote server.

Return to this page: Configuring Sonar with Eclipse

+2
source

With Sonar 3.0 plugin, local analysis can be started normally.

With the Sonar 3.2 plugin, I get the same error as you.

Select "Install New Software ..." and enter the URL:

http://dist.sonar-ide.codehaus.org/eclipse-archives/3.0.0/

0
source

I had the same problem because I updated the eclipse plugin but forgot to update the sonar server (SonarQube).

After completing the upgrade and installation guide for SonarQube 3.6.2, it worked again.

0
source

Source: https://habr.com/ru/post/1489933/


All Articles