sonar-runner : 2.4 failed: the folder src/main/java' does not exist for xxxx , but sonar-runner 2.6 works..

247 views
Skip to first unread message

dreaminv...@gmail.com

unread,
Jul 10, 2017, 6:54:02 AM7/10/17
to SonarQube
hi, 
     When I  scan multi-module projects using sonar-runner-2.4, it failed with msg:
The folder src/main/java does not exist for xxx. (but xxx's directory contains sonar-project.properties, i.e. 
ProjectReactorBuilder can't recognize the sonar-project.properties..)

But with sonar-runner-2.6 or higher, everything goes OK...


I debug the source code and find the problem here,
Actually my project includes sub-projects that specified in sonar-project.properties' sonar.modules
(but it's not recognized? Maybe here getSubProjects() 's return value that is shared by the other object
is reset by the other object)

(from ProjectReactorBuilder.java:)
if (project.getSubProjects().isEmpty()) {
...
}

hmmm... I guess here is a known bug that has been fixed?
(because 2.6 doesn't show this bug...)


PS:
(maybe this is a clue, when I am using sonar-runner 2.6:
A multi-module project can't have source folders)

If what i have said is not clear for you, please let me know~ 
Thx 



Julien HENRY

unread,
Jul 11, 2017, 3:36:52 AM7/11/17
to SonarQube
Hi,

sonar-runner 2.4 is quite old. If you confirm everything works fine with a more recent version, what is the point of spending time on investigating the issue in version 2.4?

++

Julien

dreaminv...@gmail.com

unread,
Jul 11, 2017, 4:37:19 AM7/11/17
to SonarQube
hmmm.. I want to get this skill (debugging sonar-scanner with sonarqube using IDE) by means of this bug..
Meanwhile, here I think it's so strange..(Can't  you think so?)

Sonar-scanner is using scan-engine to analyze from sonarqube web server 
i.e. different sonar-runner-s with the same sonarqube server are sharing the same scan-engine.. 

So we can yield that this problem is belonging to sonar-runner itself.. But here I can't find this bug source-position.
And  I think it is maybe an existed bug before.. and I want to know it.. 
That's what I think now.




在 2017年7月11日星期二 UTC+8下午3:36:52,Julien HENRY写道:
Reply all
Reply to author
Forward
0 new messages