项目作者: mateuszwlosek

项目描述 :
Java + Sonarqube
高级语言: Java
项目地址: git://github.com/mateuszwlosek/sonarqube-example.git
创建时间: 2020-08-03T20:36:44Z
项目社区:https://github.com/mateuszwlosek/sonarqube-example

开源协议:

下载


Sonarqube - Example

Example of Sonarqube usage with example java project.

Used Docker to containerize environment.
PostgreSQL was used to store sonarqube data

Sonarqube Example Service

  • I created a class with some bad code, so that sonarqube could generate some warnings

How to run the environment?

Before you start

  • Make sure you have Docker, docker-compose, maven and Java 11 installed.

Docker CE INSTALLATION
Docker Compose INSTALLATION
Maven INSTALLATION
Java 11 INSTALLATION

Start the environment

  1. Run sonarqube and postgres:
    docker-compose up
  2. Wait for sonarqube to fully start
  3. Run sonarqube analysis (in sonarqube-example-service directory):
    mvn sonar:sonar -Dsonar.host.url=http://localhost:9000

    Important endpoints:

sonarqube