2013-11-14 37 views
1

任何人都知道如何解決這個問題?SonarQube無法找到項目配置路徑

C:\sonar-runner\bin\.. 
SonarQube Runner 2.3 
Java 1.7.0_45 Oracle Corporation (64-bit) 
Windows Server 2012 6.2 amd64 
INFO: Error stacktraces are turned on. 
INFO: Runner configuration file: C:\sonar-runner\bin\..\conf\sonar-runner.properties 
INFO: Project configuration file: NONE 
INFO: Default locale: "pt_BR", source code encoding: "windows-1252" (analysis is platform dependent) 
INFO: Work directory: C:\sonar-runner\bin\.sonar 
INFO: SonarQube Server 4.0 
INFO: ------------------------------------------------------------------------ 
INFO: EXECUTION FAILURE 
INFO: ------------------------------------------------------------------------ 
Total time: 7.425s 
Final Memory: 6M/31M 
INFO: ----- 
ERROR: Error during Sonar runner execution 
ERROR: Unable to execute Sonar 
ERROR: Caused by: You must define the following mandatory properties for 'Unknow 
n': sonar.projectKey, sonar.projectName, sonar.projectVersion, sonar.sources 

出於某種原因,SonarQube找不到配置項目路徑 從INFO其返回NONE。 我已經在聲納運行者的conf路徑中有文件。

回答

4

如果你仔細的閱讀doc page "Analyzing with SonarQube Runner",你可以閱讀:

Run the following command from the project base directory to launch the analysis: 

最重要的部分是「從項目的基本目錄」。這應該回答你的問題。

-1

您需要在基礎目錄中添加項目配置文件。

也就是說C:\聲納亞軍\ BIN