Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
I have recently stood up a sonarqube instance (7.9.4) on docker pointing to a postgres db(13).
The instance works fine - as in it will scan a project no problem. My problem is it is only scanning xml and not the additional java code that I am actually trying to scan. I cannot figure out how to initiate the java scanner.
As a comparison the same code is being scanned just fine on my old instance which is sonarqube 7.6 running on a windows server talking to a postgres db as well
I am initiating the scan the same way on both systems from the same code base using the following
mvn sonar:sonar -Dsonar.projectKey=com.tdkc.udop.tycho:com.tdkc.udop.tycho.root -Dsonar.host.url=http://hostname:9000 -Dsonar.login=6c51cd8177bfe0fb7b84cea2a2a759a03ebf820b
The only thing that changes in the above is the host name to point to the new docker instance.
The scan kicks off fine but it only runs the scan against the pom.xml file and nothing else.
I am fairly new to sonarqube and scoured the configuration to see if I could see a difference between the two environments but could not find anything.
So I guess my question is how do I “enable” the java scanner so that it will scan my javacode?
Thank you in advance