2013-11-14 39 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