SonarQube Server 5.1.2, Sonar-Runner 2.4
正如Multi-moduleProject中提供的那样,我创建了一个项目结构
Accounts
|
->invoice
|
->src
->receipt
|
->src
->sonar.properties
文件:sonar.properties
sonar.projectKey=org.mycompany.acc
sonar.projectName=Account
sonar.projectVersion=1.0
sonar.sources=src
sonar.modules=invoice,receipt
invoice.sonar.projectName=Invoice
receipt.sonar.projectName=Receipt
在 sonar-runner 中执行上述配置时,我遇到错误“帐户”目录中缺少“src”文件夹,希望此配置与该链接中可用的 conf 相同。据了解,如果配置好,那么Invoice和Receipt将被列为Account Project下的子项目,那么在上述配置中需要进行哪些更改才能实现一个项目下的多模块/项目。
错误
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: The folder 'src' does not exist for 'org.mycompany.acc' (base
directory = C:\Users\xyz\Accounts\.)
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with t
he -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.