Reputation: 59
Anyone knows how to figure this out?
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
For some reason the SonarQube can't find the configuration project path its return NONE from the INFO. I already have the file in the conf path of the sonar-runner.
Upvotes: 1
Views: 13972
Reputation: 591
Important: the name of the project configuration file must be: "sonar-project.properties" (not sonar-scanner.properties)
And you have to launch the sonar-scaner
command from the path of your project.
Upvotes: 2
Reputation: 1
You need to add Project config file in the base directory.
That is C:\sonar-runner\bin
Upvotes: -1
Reputation: 26843
If you read carefully the doc page "Analyzing with SonarQube Runner", you can read:
Run the following command from the project base directory to launch the analysis:
The most important part is "from the project base directory". This should answer your question.
Upvotes: 3