#----- MySQL 5.x # Comment the embedded database and uncomment the following line to use MySQL sonar.jdbc.url=jdbc:mysql://10.22.10.139:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
<settings> <profiles> <profile> <id>sonar</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <!-- Example for MySQL--> <sonar.jdbc.url> jdbc:mysql://10.22.10.139:3306/sonar?useUnicode=true&characterEncoding=utf8 </sonar.jdbc.url> <sonar.jdbc.username>sonar</sonar.jdbc.username> <sonar.jdbc.password>sonar</sonar.jdbc.password> <!-- Optional URL to server. Default value is http://localhost:9000 --> <sonar.host.url> http://10.22.10.139:9000 </sonar.host.url> </properties> </profile> </profiles> </settings>
mvn clean install mvn sonar:sonar
配置Sonar、Jenkins進行持續審查 http://www.linuxidc.com/Linux/2016-08/133877.htm
sonarQube代碼質量管理工具環境籌建筆記 http://www.linuxidc.com/Linux/2016-08/133878.htm
SonarQube代碼質量管理平台安裝與使用 http://www.linuxidc.com/Linux/2016-08/133879.htm
Sonar 的詳細介紹:請點這裡
Sonar 的下載地址:請點這裡