问题描述
我正在使用 Java、Eclipse.我已经安装了 &在我的机器上配置了 sonar-server,sonar-runner,它工作正常.我已经使用 http://localhost:9000/
在我的机器上测试了我的项目的代码质量.一切正常.但现在我想使用我机器上的声纳服务器测试另一台机器上的项目的代码质量.(意味着我有 5 台机器,然后我不想安装声纳服务器,声纳运行器在所有机器上,我只是将它安装在一台机器上并想将它用于所有其他机器).
I am using Java,Eclipse.I have installed & configured sonar-server,sonar-runner on my machine,it is working properly.I have tested the code quality of my project on my machine using http://localhost:9000/
. Everything is working fine.But now I want to test code quality of project which is on another machine using sonar server which is on my machine.(Means I have 5 machines then I don't want to install sonar-server,sonar-runner on all machines, I just installed it on one machine & want to use it for all other machines).
如何将声纳服务器连接到另一台或不同机器上的项目.请指导我,如何做到这一点?如何进行设置?
How to connect sonar server to the project which is on another or different machine. Please guide me,how to do this?How to do setup?
推荐答案
在所有其他机器上,您需要安装 Sonar Runner 并将其配置为指向您的远程 Sonar 服务器.为此:编辑conf/sonar-runner.properties"文件以引用远程 Sonar 服务器的 URL 和远程数据库的 JDBC 连接.
On all your other machines, you need to install the Sonar Runner and configure it to point to your remote Sonar server. To do so: edit the "conf/sonar-runner.properties" file to reference the URL of your remote Sonar server and the JDBC connection to your remote database.
所有这些都在这里解释:安装和配置声纳扫描仪
All this is explained here: Installing and Configuring Sonar Scanner
这篇关于如何在多台机器上使用一个声纳服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!