java 声纳插件Eclipse
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5556627/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Sonar plugin Eclipse
提问by Eduardo
Can I use Sonar plugin without others installations of Sonar ? I'm trying to use following the steps of sonar docbut it don't work. When I try to associate my projects the message "IDgroup empty" appears, and I can't connect when I try 'test connection'. Someone knows some better tutorial , or more specific? Thanks
我可以在没有其他声纳安装的情况下使用声纳插件吗?我正在尝试按照声纳文档的步骤使用,但它不起作用。当我尝试关联我的项目时,会出现消息“IDgroup 空”,并且当我尝试“测试连接”时无法连接。有人知道一些更好的教程,或更具体的?谢谢
回答by FrVaBe
To use the plugin you need a sonar sever somewhere. Do not hesitate to install the sonar server on your local machine if you do not have a central installation. It is very simpleto setup the server for local testing/usage.
要使用该插件,您需要在某处安装声纳服务器。如果您没有集中安装,请不要犹豫在本地计算机上安装声纳服务器。这是非常简单的设置进行本地测试/使用的服务器。
回答by Michael Munsey
You have to be running Sonar somewhere, localhost:9000 is fine. Then you have to do a build of this project using that Sonar. If you are using Maven, right click on the project -> Run As -> Maven build, and put in sonar:sonar as the Goal. This can also be done using Ant instead, but you will need a sonar target in your build.xml. Then when you do the "Associate with Sonar" dialog, if GroupId and ArtifactId are empty, type in the correct values in those columns.
你必须在某处运行声纳,localhost:9000 很好。然后你必须使用那个声纳来构建这个项目。如果您使用的是 Maven,请右键单击项目 -> Run As -> Maven build,并将 sonar:sonar 作为目标。这也可以使用 Ant 来完成,但您需要在 build.xml 中设置声纳目标。然后,当您执行“与声纳关联”对话框时,如果 GroupId 和 ArtifactId 为空,请在这些列中输入正确的值。
回答by oers
You need a sonar installation. Without it you won't be able to use the plugin.
您需要安装声纳。没有它,您将无法使用该插件。
回答by ambassador86
The Sonar user guide should clarify this question. It is not possible to use the plugin without an running sonar instance anywhere. You need to install it somewhere an analyse the project once with the sonar runner, ant or maven. After this procedure you are able to analyse your project locally. The reason for this precondition is the central configuration of Sonar.
声纳用户指南应该澄清这个问题。如果没有正在运行的声纳实例,则无法在任何地方使用该插件。您需要将它安装在某个地方,然后使用声纳运行器、ant 或 maven 分析一次项目。在此过程之后,您可以在本地分析您的项目。这种先决条件的原因是声纳的中心配置。