An open API service indexing awesome lists of open source software.

https://github.com/osandadeshan/sonarqube-maven-example


https://github.com/osandadeshan/sonarqube-maven-example

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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](https://www.sonarqube.org/downloads/)

* 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](https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-maven/)