Code Quality Assurance Using SonarQube

Here is how you enable SonarQube in your Maven based project. Just put this into your pom.xml:

<build>
<plugins>
<plugin>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>4.3</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.profile>Your Profile</sonar.profile>
<sonar.branch>master</sonar.branch>
<sonar.projectDescription>Your Description</sonar.projectDescription>
<sonar.buildbreaker.skip>false</sonar.buildbreaker.skip>

<sonar.jdbc.url>jdbc:mysql://sonar.example.com:3306/sonar</sonar.jdbc.url>
<sonar.login>sonar</sonar.login>
<sonar.password>sonar</sonar.password>
</properties>
</profile>
</profiles>

Comments

Popular posts from this blog

Tuning ext4 for performance with emphasis on SSD usage

NetBeans 6.1: Working with Google´s Android SDK, Groovy and Grails