https://github.com/osandadeshan/sonarqube-maven-example
https://github.com/osandadeshan/sonarqube-maven-example
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/osandadeshan/sonarqube-maven-example
- Owner: osandadeshan
- Created: 2019-08-10T12:38:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-20T21:21:43.000Z (almost 2 years ago)
- Last Synced: 2025-04-08T23:22:39.863Z (6 months ago)
- Language: Java
- Homepage:
- Size: 14.6 KB
- Stars: 5
- Watchers: 1
- Forks: 162
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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/)