Analyse sonarQube standalone server :

[MYSQL]

First of all prepare your mysql user sonar :

> mysql -uroot -p
    > use mysql; > > > >     > create user sonar identified by 'sonar'; > > > >     > update user set host='%' where user = 'sonar'; > > > >     > create database sonar; > > > >     > grant all privileges on sonar.* to sonar; > > > >     > flush privileges; > > > >     > quit > >

[SOANR QUBE]

> unzip sonar-x.x.x.zip -d /path/where/to/extract/

       1. comment     : sonar.jdbc.url:                            jdbc:h2:tcp://localhost:9092/sonar

       2. uncomment : sonar.jdbc.url:                            jdbc:mysql://127.0.0.1:3306/sonar[…]

[SONAR RUNNER]

> unzip sonar-runner-dist-x.x.x.zip -d /path/where/to/extract/
# required metadata sonar.projectKey=witr:project sonar.projectName=proj sonar.projectVersion=1.0 # optional description sonar.projectDescription=Fake description # path to source directories (required) sonar.sources=src/main # The value of the property must be the key of the language. sonar.language=java # Encoding of the source code sonar.sourceEncoding=UTF-8 # Additional parameters #sonar.my.property=value
> sonar-runner