SonarQube installation and use tutorial under windows

1. Download

https://www.sonarqube.org/downloads/

Just download the community version

2. Download and unzip and enter

Double-click to open StartSonar.bat, friendly reminder, 8.3 requires jdk11 or higher to run

3. Open localhost:9000 in the browser

Can visit the instructions to run

4. Add to the pom file plugin in the project

<build>
    <plugins>
        <plugin>
            <groupId>org.sonarsource.scanner.maven</groupId>
            <artifactId>sonar-maven-plugin</artifactId>
            <version>3.6.0.1398</version>
        </plugin>
    </plugins>
</build>

Then cmd execute

mvn clean compile sonar:sonar

Refresh the page after execution

There will be data.

5. Chinese installation package

Default account password admin/admin

 

Guess you like

Origin blog.csdn.net/f1370335844/article/details/105976745