SCM provider autodetection failed. Both git and svn claim to support this project. Please use "sonar.scm.provider" to define SCM of your project.
SCM提供程序自动检测失败。git和svn都支持这个项目。请使用“sonar.sscm.provider”定义您项目的管理工具。
在执行检测命令时,增加 -D"sonar.scm.provider=git" 参数,具体命令如下:
mvn sonar:sonar -D"sonar.scm.provider=git"
我这里是在maven\conf\配置文件settings.xml添加了sonar的配置的
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.login>登录账号</sonar.login>
<sonar.password>登录密码</sonar.password>
<sonar.host.url>http://xxxxx:9000</sonar.host.url>
</properties>
</profile>