SonarQube version - Community Edition - Version 9.9.4
Resources:
OS - Windows
DB - Postgres
Java - 17
On a local install on a windows machine with the above resource, once a scan is triggered, subfolders for modules are being skipped for no obvious reason. Am I missing a flag from the below cmd call to set additional properties?
Hi Gilbert.
Yes the layout of the module subfolders are standard as stated. There is however one more thing to consider before digging into the logs. Initially I did not have any xml plugins in my local install extensions/plugins folder. I eventually got a ‘sonar-xml-plugin’ in JAR from the maven repository with version number 2.10.0.4108 and placed it in the extensions/plugins folder as per instructions from the Sonar guide. Now I have to restart the application for the change to apply however this is where a new problem occurs with failed startup messages indicating plugins can’t be loaded.
“app[startup] Startup failed: Plugins can’t be loaded. See web logs for more information”
the days when you were able to update the sonar plugins one by one are long gone.
Nowadays if you need to update a sonar plugin - i.e. to support the latest version of java -
you’re forced to update your whole Sonarqube instance.
I’m nearly 100% sure the sonar-xml plugin is not responsible for your problem, you should provide the debug log of the maven build + the pom.xml to get further insights.
Of course the /extensions/plugins/sonar-xml-plugin-2.10.0.4108.jar has to be deleted.