This is placed within: pom.xml > project > build > plugins:
<plugin>
org.codehaus.mojo sonar-maven-plugin 2.7.1
The plugin itself requires a few properties to be set. This can be simplified by using a profile to wrap the functionality:
This is placed within: pom.xml > project > profiles:
sonar false sonar:sonar <sonar.host.url>http://ukgw-build-vp01/sonar</sonar.host.url> <sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8</sonar.jdbc.url> <sonar.jdbc.username>admin</sonar.jdbc.username> <sonar.jdbc.password>whatever</sonar.jdbc.password> <sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver> <sonar.host.url>http://localhost:9001</sonar.host.url>