| Table of Contents |
Compatibility Matrix
All SCM providers currently require the native executable to be installed on the box. For example, for Subversion projects svn executable must be available.
Plugin | 1.2 | 1.3 | 1.4 | 1.5 |
|---|---|---|---|---|
Subversion (1.6+ client) |
|
| ||
|
| |||
|
| |||
|
| |||
|
| |||
|
| |||
|
| |||
|
| |||
|
| |||
| Jazz RTC | ||||
| MKS Integrity | ||||
| Visual SourceSafe |
|
| ||
| CM Synergy |
|
| ||
|
|
- supported
- not tested
- not implemented
Features
This plugin collects SCM information on each source file to display in the source code viewer the last committer on lines.

Usage & Installation
- Install from Update Center or download the JAR into the directory /extensions/plugins/
- Restart Sonar
Define the SCM URL of your project (see SCM URL Format). For Git, SVN and Mercurial, the SCM provider is automatically discovered, so what's defined in this property is not taken into account.
Example for Maven pom.xml:Or you can use Project Setting - SCM URL.
Or specify it via propertysonar.scm.url.- Go to
Global/Project Settings- Enable the plugin. This plugin is disabled by default, because it can dramatically increase analysis time of your project.
- Specify User (
sonar.scm.user.secured) and Password (sonar.scm.password.secured) if needed; if specified thendeveloperConnectionwill be used, otherwiseconnection
- Launch a new quality analysis and the metrics will be fed
| Performance The first analysis of a project with version 1.4 will last longer than the subsequent analyses. |
Known Problems and Limitations
Subversion "Server certificate verification failed: issuer is not trusted"
Add following to .subversion/servers:
CVS anonymous access not working "org.apache.maven.scm.ScmException: password is required."
Try to set empty password for repository in .cvspass. For example:
I use Git and the annotated sources sometimes display a wrong/old author name
The plugin uses 'git blame' command to find out the author of each line. Because a user can commit with different author name/email, it is advised to have a .mailmap file at the root of the repository. This file is used by 'git blame' to find out canonical name/email of each user.
See http://git-scm.com/docs/git-blame#_mapping_authors
Changelog
| Release 1.3 (6 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-899 | Upgrade to Maven SCM 1.5 |
|
|
Fixed |
|
|
SONARPLUGINS-1067 | Support Mercurial |
|
|
Fixed |
|
|
SONARPLUGINS-1085 | The analysis must not fail on SCM blame errors |
|
|
Fixed |
|
|
SONARPLUGINS-1083 | Improve message when SCM URL is badly formed |
|
|
Fixed |
|
|
SONARPLUGINS-1082 | Server certificate verification failed |
|
|
Fixed |
|
|
SONARPLUGINS-1069 | SCM Activity plugin sources documentation link points to invalid location |
|
|
Fixed |
| Release 1.1 (4 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-373 | Support for TFS |
|
|
Fixed |
|
|
SONARPLUGINS-457 | Add Perforce support to the SCM Activity Plugin |
|
|
Fixed |
|
|
SONARPLUGINS-455 | Add support for blame command for Accurev |
|
|
Fixed |
|
|
SONARPLUGINS-454 | Add support for blame command for ClearCase |
|
|
Fixed |
| Release 1.0 (6 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-398 | CVS implementation does not work anymore |
|
|
Fixed |
|
|
SONARPLUGINS-374 | Maven-scm-ext should be Java 1.4 compatible |
|
|
Fixed |
|
|
SONARPLUGINS-350 | Scm Activity data should not be gathered when injecting historical data |
|
|
Fixed |
|
|
SONARPLUGINS-371 | Add a config parameter to specify or override (pom) the SCM information |
|
|
Fixed |
|
|
SONARPLUGINS-368 | ScmException while parsing generated java files |
|
|
Fixed |
|
|
SONARPLUGINS-366 | Add violations to blame viewer |
|
|
Fixed |
| Release 0.2 (8 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-359 | Add unit tests for SVN and Git |
|
|
Fixed |
|
|
SONARPLUGINS-358 | Use pure Java implementation for CVS |
|
|
Fixed |
|
|
SONARPLUGINS-353 | Support Bazaar SCM |
|
|
Fixed |
|
|
SONARPLUGINS-354 | Using svn java instead of svn cli |
|
|
Fixed |
|
|
SONARPLUGINS-351 | Enable to gather data from a secured SCM |
|
|
Fixed |
|
|
SONARPLUGINS-352 | Source code data should not appear when plugin is not activated or is incorrectly configured |
|
|
Fixed |
|
|
SONARPLUGINS-331 | Support Mercurial SCM |
|
|
Fixed |
|
|
SONARPLUGINS-330 | Support CVS SCM |
|
|
Fixed |
| Release 0.1 (6 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-335 | Revision metric |
|
|
Fixed |
|
|
SONARPLUGINS-333 | Show author of each line within source code |
|
|
Fixed |
|
|
SONARPLUGINS-334 | Last commit metric |
|
|
Fixed |
|
|
SONARPLUGINS-329 | Support Git SCM |
|
|
Fixed |
|
|
SONARPLUGINS-328 | Support Subversion SCM |
|
|
Fixed |
|
|
SONARPLUGINS-322 | Create a plugin to report activity in SCM |
|
|
Fixed |

