2016-04-28 91 views
1

我有一個多項目結構如下錯誤基本目錄:sonarqube-gradle這個-插件:導出子項目兩層深

:very:bestappever 
:bestappever-distrib 

的SonarQubePlugin給

:sonarqube 
09:35:05.139 INFO - Load global repositories 
09:35:05.252 INFO - Load global repositories (done) | time=114ms 
09:35:05.254 INFO - Server id: 20160428045618 
09:35:05.256 INFO - User cache: C:\Users\tk09\.sonar\cache 
09:35:05.265 INFO - Install plugins 
09:35:05.401 INFO - Install JDBC driver 
09:35:05.414 INFO - Create JDBC datasource for jdbc:mysql://10.48.213.38:3306/sonar 
09:35:06.456 INFO - Initializing Hibernate 
:sonarqube FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':sonarqube'. 
> The base directory of the module ':very:bestappever' does not exist: C:\Workarea\verybestappever\very\:very:bestappever 

您可能請注意,項目':very:bestappever'的完整路徑插入錯誤的地方。

這可能與https://jira.sonarsource.com/browse/SONARGRADL-12有關,我通過將:bestappever項目移動到:very:bestappever來採用了最好的例子。你可以在https://github.com/ThiporKong/sonarqube-gradle-issue找到這個例子。

我錯過了什麼嗎?是否有任何配置選項可用於處理深度嵌套的gradle多項目?我已經嘗試了Sonarqube how to configure gradle sub-projects correctly?的建議,但無濟於事。

感謝和問候,

Thipor

+0

似乎是一樣的http://stackoverflow.com/questions/36896336/why-is-gradle-sonar-jacoco-looking-for-dir-and-also-project – Henry

回答