Skip to content

osandadeshan/sonarqube-maven-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SonarQube Basic Maven Example

This simple Maven project is importing JaCoCo's coverage report.

Usage

  • Download SonarQube which matches with your Java version from here

  • Start the SonarQube server
    For Windows
    YOUR_DIR_PATH\sonarqube\bin\windows-x86-xx\StartSonar.bat
    For other operating systems like Linux/Ubuntu
    YOUR_DIR_PATH/sonarqube/bin/[OS]/sonar.sh console

  • Once the SonarQube Server is up and running then you can visit the SonarQube Dashboard at http://localhost:9000/dashboard/
    Default System administrator credentials are admin/admin

  • Build the project, execute all the tests and analyze the project with SonarQube Scanner for Maven
    mvn clean verify sonar:sonar
    or
    mvn clean install sonar:sonar

  • Click on the project name to see the code quality inspection


Documentation

SonarScanner for Maven

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Languages