LinkedNestBlog

SonarQube 4.x 버전 설치

by 이진원Dev
SonarQube 4.x 버전 설치

  1. mysql 설정
    1. mysql workbench에서 ‘sonar’ schema를 생성
    2. sonar / sonar (ID / PW)  계정을 추가한다.
  2. SonarQube 설치
    1. SonarQube Download : http://www.sonarqube.org/downloads/ 
      • 참고 :
        이클립스에서 SonarQube 플러그인을 사용하기 위해서는 5.2 버전 이하의 것을 download받아야 한다. 
        5.2 버전부터는 deprecated 되었기 때문이다.
    2. 압축을 풀고
    3. cd sonarqube-4.5.6 console 창으로 sonarqube 디렉토리로 이동
    4. cd conf (conf 디렉토리로 이동)
    5. vi sonar.properties(sonar.properties의 수정 : 아래 빨간색 박스 및 선 영역의 주석을 풀어주고 local DB 계정 정보를 입력한다.
    6. local url(ip) 정보를 입력한다.
    7. cd ../bin
    8. cd macosx-universal-64
    9. ./sonar.sh start
    10. http://localhost:9000/ 실행
  3. 이클립스 플러그인 설치
    1. 이클립스 > help > Ecllipse Marketplace... 를 선택
    2. ‘sonarqube’로 검색 및 install 버튼 클릭
    3. Eclipse > 환경설정 선택
    4. SonarQube > Servers 선택 및 우측 add 버튼 클릭
    5. local 서버 설정 및 test connection
    6. 프로젝트 분석 실행
    7. console에서의 log 최하단에 successful이 보이면 good.
    8. 분석내용 확인
    9. 세부 내용 확인. 적나라하다.
 
SonarQube 4.x 버전 설치 · LinkedNest Blog