將2.2.1的環境變量2.4時,需要執行
1)vi /etc/profile直接進行修改;
執行source /etc/profile
在項目的目錄下執行sonar-runner。
2)export SONAR_RUNNER_HOME="/usr/local/sonar-runner/sonar-runner-2.4"
export PATH="$PATH:$SONAR_RUNNER_HOME/bin"
再執行source /etc/profile
在項目下執行sh /usr/local/sonar-runner/sonar-runner-2.4/bin/sonar-runner