本地分析所需的声纳版本 3.6 [英] Sonar version 3.6 required for local analysis

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

问题描述

遇到Sonar version 3.6 is required to perform local analysis"消息当尝试在 Eclipse 中使用声纳局部分析时.

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

我刚刚从 CodeHaus

兼容性矩阵说它是 3.6+.

where the Compatibility Matrix is saying it 3.6+.

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

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

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

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

Sonar m2e 连接器 3.2.0.20130627-1142-RELEASE org.sonar.ide.eclipse.m2e.feature.feature.group SonarSource

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

有什么想法吗?

推荐答案

你在运行 sonarqube 服务器吗?

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+在+Eclipse中

出于您正在查看的目的,我假设个人使用,您可能会使用 H2 嵌入式数据库来摆脱 SonarQube 的独立实例.

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.

局部分析参数

可以在不同的地方设置配置本地分析的参数.这是参数的层次结构:

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

  • SonarQube Web UI 中定义的参数

  • Parameters defined in the SonarQube Web UI

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

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

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

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

在 Eclipse 中在项目级别定义的参数将覆盖在 Eclipse 级别定义的参数(右键单击项目并转到属性>声纳>局部分析属性)

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)

排除插件

借助 sonar.dryRun.excludePlugins 属性(设置 > 配置 > 常规设置 > 常规),可以在执行本地分析时跳过某些插件(对本地分析无用).

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).

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

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'.

我在这里找到了这些信息:正在运行Eclipse 中的声纳 Qube

Here is where I found this information: Running Sonar Qube In Eclipse

仔细检查您的设置

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

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

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

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

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