Name |
Sonar SCM Activity Plugin |
License |
Apache 2 |
Authors |
|
Jira |
http://jira.codehaus.org/browse/SONARPLUGINS/component/14305 |
Sources |
|
Latest version |
1.0 (check version compatibility ) |
Download |
|
Download snapshot |
Compatibility matrix
Plugin |
0.1 |
0.2 |
1.0 |
1.1-SNAPSHOT |
---|---|---|---|---|
Sonar |
1.12+ |
1.12+ |
2.0+ |
2.0+ |
|
|
|
|
|
|
|
|
|
|
Git (Pure Java) (see SONARPLUGINS-361) |
|
|
|
|
|
|
|
|
|
CVS (Pure Java) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Perforce (Pure Java) (see SONARPLUGINS-462) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Accurev (see SONARPLUGINS-455) |
|
|
|
|
- added and tested
- added, but not tested in real-life
- not implemented
Description / Features
This plugin collects and reports information from SCM.
SCM Metrics
Dashboard widget
Blame
Real life examples
To see a real life examples, you can browse following projects Nemo:
- Subversion - Xdoclet
- CVS - Java Calendar Tools
Usage & Installation
- Place the jar into /extensions/plugins/ directory
- Restart Sonar Web server
- Set proper scm tag within your pom.xml
Example:<scm> <connection>scm:svn:http://svn.codehaus.org/sonar-plugins/trunk/scm-activity</connection> <developerConnection>scm:svn:https://svn.codehaus.org/sonar-plugins/trunk/scm-activity</developerConnection> <url>http://svn.sonar-plugins.codehaus.org</url> </scm>
- Go to
Global/Project Settings
- Enable plugin. This plugin disabled by default, because can dramatically increase analysis time of your project
- Specify User and Password if needed; if specified then
developerConnection
will be used, otherwiseconnection
- Launch a new quality analysis and the metrics will be fed
Known problems
Subversion "Server certificate verification failed: issuer is not trusted"
Add following to .subversion/servers
:
[global] ssl-authority-files = /path/certificate.crt ssl-trust-default-ca = yes
Pure Java CVS "Could not read password: java.io.FileNotFoundException: /home/user/.cvspass"
Create empty file .cvspass
Pure Java CVS "[ERROR] Didn't find password for CVSROOT"
Just ignore this message - everything should work fine.