Authors | |
Jira | http://jira.codehaus.org/browse/SONARPLUGINS/component/13725 |
Last Version | 0.1 |
License | LGPL v3 |
Sources |
Description
Add a report link to the Maven site that redirects to the project dashboard in Sonar.

Usage
Add the plugin to the reporting section in the POM :
| Code Block | ||
|---|---|---|
| ||
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.sonar-plugins</groupId>
<artifactId>maven-report</artifactId>
</plugin>
</plugins>
</reporting>
|
Optionally, you can add the following properties to override default values :
| Code Block | ||
|---|---|---|
| ||
<properties> <!-- default value is http://localhost:9000 --> <sonar.host.url>http://my_server:9000</sonar.host.url> <!-- no branch by default --> <branch>BRANCH-1.x</branch> </properties> |
Generate the maven site :
| Code Block |
|---|
mvn site |

