不使用Sonnar-Scanner-cli执行Sonar分析

minute_5

关注

阅读 65

2022-03-18

最近下载不了sonar-cli了,之前的办法用不了了,改换成maven方式
  1. 在maven的settings文件中添加如下配置:
<profiles>
        <profile>
            <id>sonar</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <sonar.host.url>http://localhost:9000</sonar.host.url>
            </properties>
        </profile>
</profiles>
  1. 在项目pom层级,使用mvn sonar:sonar进行分析

精彩评论(0)

0 0 举报