Sonar ??????????????
???????????? ???????[ 2014/6/6 13:25:48 ] ???????????????? ??????????
????1) ????
??????sonar????http://www.sonarsource.org/???? ???汾??????μ????
????????????????????????zip???????????????????? windows ??linux ??mac??汾
????2????? ???
??????????? sonarqube-4.1
???????????????????к???bin/macosx-universal-64 ?? ??? ???????mac 64λ??????????????? ??
????./sonar.sh start
????????????????????????г??
????Starting sonar...
????Started sonar.
?????????????http://localhost:9000 ?????????????????? ???ɡ? ???????????????????????
????3???????????
???????????mysql
????????????? sonar ??????? ?????????utf8??????????????????????????conf?ж??????? ???????????????
????4) ??????????
????λ?? conf/sonar.properties
???????????? ???????????????????????????
????5?????maven????????? settings.xml
????????????????
<profiles>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- EXAMPLE FOR MYSQL -->
<sonar.jdbc.url>
jdbc:mysql://127.0.0.1:3306/sonar?characterEncoding=utf8&useUnicode=true&autoReconnect=true&failOverReadOnly=false
</sonar.jdbc.url>
<sonar.jdbc.driverClassName>com.mysql.jdbc.Driver</sonar.jdbc.driverClassName>
<sonar.jdbc.username>root</sonar.jdbc.username>
<sonar.jdbc.password>******</sonar.jdbc.password>
<!-- SERVER ON A REMOTE HOST -->
<sonar.host.url>http://127.0.0.1:9000</sonar.host.url> <!-- ?????????? sonar?????????? -->
</properties>
</profile>
</profiles>
|
????6) ?????????????????????
?????????????????У?
????mvn clean install
????mvn sonar:sonar
??????????????? localhost:9000 ????°????????????????
????7??????
???????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11