- Down load and unzip SonarQube distribution
- Add SonarQube bin folder (C:\software\sonarqube-5.6.6\bin\windows-x86-64) in PATH
- Start the server
- StartSonar : starting server
- Access the UI : http://localhost:9000/
- Default user/password: admin/admin
- StartSonar : starting server
- Ctrl+C
- Closing the window will not stop the server
- Login as admin
- Adminstration> Projects> Management
- Create Project
- Name: [Name]
- Key: [key]
- Login as admin
- Adminstration> Projects> Management > Select the project
- In project page > Administration > Quality profiles
- Select profiles needed
- Edit the settings.xml file, located in $MAVEN_HOME/conf or ~/.m2
<pluginGroups>
<pluginGroup>org.sonarsource.scanner.maven</pluginGroup>
</pluginGroups>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.host.url>http://localhost:9000</sonar.host.url>
</properties>
</profile>
- In the directory where the pom.xml file sits
- mvn clean install
- mvn sonar:sonar
- Report with details (bugs, vulnerabilities, code smells, coverage, duplications) will show up in SonarQube dashboard
- Login as admin
- Adminstration> Security> Groups > Create Group
- Name: [Name]
- Login as admin
- Adminstration> Security> Users > Create User
- Login: [Login]
- Name: [Name]
- Password: [Password]
- Attach the user to group(s)
- List of users > Groups > Select groups
- Login as admin
- Adminstration> Projects> Management > Select the project
- In project page > Administration > Permissions
- Select groups for Browse/See Source Code/Administer issues/Administer/Execute Analysis
- Go to Quality Profiles
- On Right-top "Back up" button is there
- Delete unzipped SonarLint installation folder
- Delete .sonarlint folder from C:\Users<user name>