- Docker ^4.9.0
-
On the command line, create and run a Docker's SonarQube container
docker run --name SonarQube-rShop -p 9000:9000 sonarqube:8.9.9-community
-
On the browser, access SonarQube UI using the default credentials (it will ask you to create a new password):
http://localhost:9000 Login: admin Password: admin
-
On the browser, access SonarQube UI and generate a access token:
http://localhost:9000/account/security
-
On the command line, execute maven install (run this in project root)
mvn clean install
-
On the command line, scan the project using the authentication token generated in sep 3 (run this in project root)
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.login=**place-the-generated-token-here**
-
On the browser, access SonarQube UI and see the project report:
http://localhost:9000