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>
<sonar.host.url>https://sonar.example.com</sonar.host.url>
</properties>
</profile>
</profiles>
Comments
Post a Comment