连接到声纳的行家 [英] maven connecting to Sonar

查看:65
本文介绍了连接到声纳的行家的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在本地计算机上安装了maven,并且正在尝试测试安装在远程机器上的Sonar.

I have maven installed on my local machine and I'm trying to test out Sonar installed on a remote box.

我在网上发现了一些帖子,用于配置settings.xml (maven\config\settings.xml)并添加个人资料条目...我确实做了,但是不起作用

I found a few post online to configure settings.xml (maven\config\settings.xml) and append a profile entry...which I did but does not work

<profile>
   <id>sonar</id>
   <activation>
      <activeByDefault>true</activeByDefault>
   </activation>
   <properties>
      <!-- SERVER ON A REMOTE HOST -->
      <sonar.host.url>http://remotebox:9000</sonar.host.url>
   </properties>
</profile>

什么是cli方法?我尝试了几种选择,但无济于事.

What is the cli way? I tried several options but nothing worked.

我尝试过:mvn sonar:sonar http://remotebox:9000

正确的语法是什么?

先谢谢了. 达米安

PS.这在安装了maven和声纳的远程盒上工作正常...我只想尝试将我的盒子安装到远程盒上.

PS. this works fine on the remote box where both maven and sonar are installed...i just want to try it my box to the remote box.

推荐答案

使用

mvn sonar:sonar -Dsonar.jdbc.url=jdbc:h2:tcp://ipaddr:9092/sonar -Dsonar.host.url=http://ipaddr:9000

(其中ipaddr是您的远程主机)似乎可以正常工作.

,where ipaddr is your remote host, seems to work.

这篇关于连接到声纳的行家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆