简体   繁体   English

使用带有eclipse的声纳插件

[英]Using the sonar plugin with eclipse

I'm trying to use Sonar to analyse my projects in Eclipse. 我正在尝试使用Sonar来分析Eclipse中的项目。 I am currently using Maven in eclipse. 我目前在eclipse中使用Maven。 I installed the Sonar Eclipse plugin as described in this link . 我按照此链接中的描述安装了Sonar Eclipse插件。

But when I try and associate my project with Sonar, I get an error saying: project with key not found on server. 但当我尝试将我的项目与Sonar关联时,我收到一条错误消息:项目服务器上找不到密钥。

Am I missing some steps? 我错过了一些步骤吗? I started the Sonar Server before connecting to eclipse. 我在连接到eclipse之前启动了Sonar Server。 But nothing works. 但没有任何作用。 I even tried following this article ( Sonar plugin Eclipse ) but to no avail. 我甚至尝试过这篇文章( Sonar插件Eclipse ),但无济于事。

Please help..The Sonar documentation is not descriptive at all making it very hard for beginners like me to understand. 请帮助..声纳文档根本没有描述性,这让我这样的初学者很难理解。

You can not associate your project in Eclipse if you haven't first analysed it with Sonar (by running "mvn sonar:sonar" on your project). 如果您尚未首先使用Sonar对其进行分析(通过在项目中运行“mvn sonar:sonar”),则无法将项目与Eclipse关联。

Once your project has been succesfully analysed and that you can browse it in the Web UI (http://localhost:9000 by default), then you can try to associate your project within Eclipse and this will work. 一旦您的项目被成功分析并且您可以在Web UI(默认情况下为http:// localhost:9000)中浏览它,那么您可以尝试在Eclipse中关联您的项目,这将起作用。

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

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