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

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

问题描述

我在本地机器上安装了 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 (mavenconfigsettings.xml) 并附加一个配置文件条目......我做了但做了不工作

I found a few post online to configure settings.xml (mavenconfigsettings.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.

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

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