声纳版本3.6需要进行本地分析 [英] Sonar version 3.6 required for local analysis

查看:194
本文介绍了声纳版本3.6需要进行本地分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我刚刚安装了最新版本的Sonar版本3.6来执行本地分析消息
来自 CodeHaus



/ p>

我正在使用Eclipse:Juno 4.2,安装了以下插件:


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


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


任何想法?

解决方案

您是否运行sonarqube服务器? / p>

我不认为您可以使用插件,而不用运行服务器连接来进行分析。



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



为了您正在查看的目的,我承担个人使用,您可能会使用H2嵌入式数据库来脱离SonarQube的独立实例。



本地分析参数



配置本地分析的参数可以设置为各种地方。以下是参数的层次结构:




  • SonarQube Web界面中定义的参数


  • pom.xml文件中设置的参数(仅适用于Maven项目,安装
    m2e连接器)将覆盖UI中定义的参数


  • 在Eclipse中定义的参数将覆盖
    pom文件中定义的参数(转到Window> Preferences> Sonar> Local analysis
    properties)


  • Eclipse中在项目级定义的参数将覆盖Eclipse级别定义的
    参数(右键单击项目,
    转到属性>Sonar>本地分析属性)




排除插件



某些插件由于sonar.dryRun.excludePlugins属性(设置>配置>常规设置>常规),执行本地分析时可以跳过本地分析)。



默认值为' devcockpit,pdfreport,报告,scmactivity,若干意见。例如,要跳过Build Stability插件(由于 https://jira.codehaus.org/browse / SONARIDE-346 ),将属性设置为'devcockpit,pdfreport,report,scmactivity,views,buildstability'。



这里是我找到此信息的地方:在Eclipse中运行声纳Qube



双重检查您的设置



您可能还需要重新检查您的设置。该插件将为您安装声纳实例,以便在localhost:9000上进行本地分析。如果你删除了这个,这可能会给你错误。您应该在配置页面,localhost和远程服务器上列出2台服务器。



请参阅此页:使用Eclipse配置声纳


Coming across "Sonar version 3.6 is required to perform local analysis" message when try to use Sonar Local Analysis in eclipse.

I just installed latest from CodeHaus

where the Compatibility Matrix is saying it 3.6+.

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

  1. Sonar Java Analyser 3.2.0.20130627-1142-RELEASE org.sonar.ide.eclipse.jdt.feature.feature.group SonarSource

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

Any ideas?

解决方案

Are you running a sonarqube server?

I don't think you can use the plugin without the server running to connect to to do the analysis.

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

For the purposes you are looking at, I am assuming personal use, you could probably get away with the standalone instance of SonarQube, using the H2 embedded database.

Local Analysis Parameters

Parameters to configure local analysis can be set in various places. Here is the hierarchy of parameters:

  • Parameters defined in the SonarQube Web UI

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

  • Parameters defined in Eclipse will override parameters defined in the pom file (go to Window > Preferences > Sonar > Local analysis properties)

  • Parameters defined at project level in Eclipse will override parameters defined at Eclipse level (right click on the project and go to Properties > Sonar > Local analysis properties)

Excluding Plugins

Some plugins (useless for a local analysis) can be skipped while performing a local analysis thanks 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: Running Sonar Qube In Eclipse

Double Check your settings

You might also want to double check your settings. The plugin will install the sonar instance for you for local analysis on localhost:9000. If you deleted this, this might be giving you the errors. You should have 2 servers listed on the config page, localhost, and your remote server

Refer back to this page too: Configuring Sonar With Eclipse

这篇关于声纳版本3.6需要进行本地分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆