sonar使用

準備:

https://hub.docker.com/_/sonarqube

按照需要修改端口

settings.xml 

<profiles>
        <profile>
            <id>sonar</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <!-- Optional URL to server. Default value is http://localhost:9000 -->
                <sonar.host.url>
                  http://192.168.1.232:19000
                </sonar.host.url>
            </properties>
        </profile>

       ...

maven 命令啓動  mvn clean install sonar:sonar

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章