?????????????????????????? Sonar ???????á?Sonar ??????????????????????????????????????? Sonar ??????????????????????????????? Maven ??????????д????????????
????Sonar ????
????Sonar ???????????????????????????????????????Sonar ?????????????????????????????????????????????
????????????????????? Hudson/Jenkins ????????Sonar ??????????????????鶴?????????? FindBugs??PMD ??????????? Web ????????????????????????Щ?????????????????????????????????????????仯???????????????????????????????д????????????
?????????????????????棬Sonar ????????? IDE ???????????? Eclipse ?? IntelliJ IDEA ??Щ??????????????????? Sonar ???????????????????????????????????????????????????? Sonar??
????????Sonar ??????????? Java ????????????????????????????????????????????????????
????Sonar ????
????Sonar ?? Codehaus ?????????????????????? LGPL V3 ?????ɡ?????????????????????????????????????
????????????????÷????汾??????? Git ???м????Check Out?????????з?????£?
????git clone git://github.com/SonarSource/sonar.git
??????????????? Sonar ????÷??????????? Sonar ??? ?????????а??????????д????μ?汾? 2.11??
???????? zip ??????????????????????? Sonar ????? Jetty 6 ????÷??????????????????????????????????????????? Sonar ????????? Apache Tomcat ??÷??????С?
?????? windows ?????У??????? Soanr ?? bin ???? windows-x86-64StartSonar.bat ???ɡ?
???????????????з????http://localhost:9000/


????
? 1. Sonar ???????

????????????????????? Sonar??????????а????????????????????????????????????????? Quality Index Plugin ???????????????????? Sonar ?????
??????????? Sonar ????? Dashboard > Sonar > Documentation > Sonar Plugin Library ·??


????
? 2. Sonar ?????????

???????? Quality Index ????????????·??


????
? 3. Quality Index Plugin ????

???????????? sonar-quality-index-plugin-1.1.3.jar ?????? sonar-2.11extensionsplugins ·????????? Sonar???ò???? Sonar ?????????в??????????
?????????????
????Sonar ????????? Derby ???????????????????????????汾???????????????ü????????????????????????????????Sonar ????????????????????????????? Microsoft SQL Server?? MySQL??Oracle?? PostgreSQL ???
?????????? MySQL ????????θ??? Sonar ????????????
?????? MySQL ?д??? sonar ???
CREATE USER sonar IDENTIFIED BY 'sonar';
GRANT ALL PRIVILEGES ON *.* TO 'sonar'@'localhost'
IDENTIFIED BY 'sonar' WITH GRANT OPTION;
?????? MySQL ????????????? mysql-connector-java-5.1.13.jar???????? sonar-2.11extensionsjdbc-drivermysql ??
??????? sonar-2.11confsonar.properties ??????? # ?????? Derby ???????????? MySQL ????????????:
# Comment the following lines to deactivate the default embedded database.
#sonar.jdbc.url: jdbc:derby://localhost:1527/sonar;create=true
#sonar.jdbc.driverClassName: org.apache.derby.jdbc.ClientDriver
#sonar.jdbc.validationQuery: values(1)
???????????????????????????????????????????????????????????????????????
#----- MySQL 5.x/6.x
# Comment the embedded database and uncomment the following
#properties to use MySQL. The validation query is optional.
sonar.jdbc.url:
jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
sonar.jdbc.driverClassName: com.mysql.jdbc.Driver
#sonar.jdbc.validationQuery: select 1
???????? Sonar??
??????? Sonar ???д???????????
?????????漰?????????????????????飬??????????? Mojo ?????????????? Sonar ???????????????????????漰?????????£??????????? Sonar ?? Nemo ????????
?????????????? Mojo ??? ?????????????????? TortoiseSVN ???????????????Mojo ???????????????


????
? 4. Mojo ?????????