简体   繁体   English

Sonar插件Eclipse

[英]Sonar plugin Eclipse

Can I use Sonar plugin without others installations of Sonar ? 我可以在没有安装Sonar的情况下使用Sonar插件吗? I'm trying to use following the steps of sonar doc but 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'. 当我尝试关联我的项目时,出现“IDgroup empty”消息,当我尝试'test connection'时我无法连接。 Someone knows some better tutorial , or more specific? 有人知道一些更好的教程,或更具体的? Thanks 谢谢

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 simple to setup the server for local testing/usage. 设置服务器以进行本地测试/使用非常简单

You have to be running Sonar somewhere, localhost:9000 is fine. 你必须在某处运行Sonar,localhost:9000就可以了。 Then you have to do a build of this project using that Sonar. 然后你必须使用Sonar来构建这个项目。 If you are using Maven, right click on the project -> Run As -> Maven build, and put in sonar:sonar as the Goal. 如果您正在使用Maven,请右键单击项目 - > Run As - > Maven build,然后输入声纳:sonar作为目标。 This can also be done using Ant instead, but you will need a sonar target in your build.xml. 这也可以使用Ant来完成,但是在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. 然后,当您执行“与声纳关联”对话框时,如果GroupId和ArtifactId为空,请在这些列中键入正确的值。

You need a sonar installation. 你需要一个声纳装置。 Without it you won't be able to use the plugin. 没有它你将无法使用该插件。

The Sonar user guide should clarify this question. Sonar用户指南应该澄清这个问题。 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. 这个先决条件的原因是声纳的中心配置。

Sonar User Guide (Configuring Sonar in Eclipse) Sonar用户指南(在Eclipse中配置声纳)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM