準備:
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