我执行了以下步骤。
Eclipse > 安装新软件 > http://downloads.sonarsource.com/eclipse/eclipse/ 安装了 SonarQube。
运行bat文件>StartSonar.bat (版本:sonarqube-6.6)
Eclipse > 窗口 > 首选项 > SonarQube > 服务器 单击编辑并输入“admin”密码。 测试连接成功。
http://localhost:9000/projects也工作。使用“admin”密码登录。
在 Eclipse 上创建了新的 Java 类。 (例如:HelloWold 类)
右键单击项目并 > 配置 > 与 sonarQube 关联
窗口已加载。在项目面板中,我的项目名称显示在那里。但“SonarQube Project”面板中没有任何内容。尽管我输入了一些内容(简单的 java、Java 等),但没有列出任何内容。无结果显示。我是新来的。我无法找到之前描述的任何解决方案。感谢您的任何帮助。
最佳答案
SonarQube Eclipse 插件已被弃用,并且不适用于您正在使用的 SonarQube 版本 (6.6)。
参见https://docs.sonarqube.org/display/SONARQUBE53/Installing+SonarQube+in+Eclipse
The SonarQube Eclipse plugin is deprecated
The SonarQube Eclipse plugin does not work with SonarQube 5.2+. It is replaced by SonarLint for Eclipse.
您可以在此处获取 SonarLint:https://www.sonarlint.org/eclipse/index.html
关于java - 无法使用 Eclipse (Neon) 配置 SonarQube,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46992413/