sonar scanner的安装与使用

以下为linux版本的使用:

1.解压:
sonar-scanner-cli-4.4.0.2170-linux
命令如下:
unzip sonar-scanner-cli-4.4.0.2170-linux.zip -d sonar-scanner-cli-4.4.0.2170-linux


2.配置root/etc/profile下的环境变量:
SONAR_SCANNER_HOME=/data/sonar-scanner-cli-4.4.0.2170-linux
#export PATH=${SONAR_SCANNER_HOME}/bin:${PATH}


export MAVEN_HOME=/usr/local/apache-maven-3.5.0
export SONAR_SCANNER_HOME=/data/sonar-scanner-cli-4.4.0.2170-linux
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin:${MAVEN_HOME}/bin:${SONAR_SCANNER_HOME}/bin

--此处需要等下面问题解决后,重新修改下配置方法
问题:
[root@localhost etc]# source /etc/profile
'abrt-cli status' timed out

[root@localhost ~]# abrt-auto-reporting enabled
abrt-auto-reporting: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS32  -----待解决???


3.验证安装:
sonar-scanner -v

[root@localhost etc]# sonar-scanner -v
bash: sonar-scanner: 未找到命令...    -----待解决???
 

你可能感兴趣的:(代码质量管理工具)