We really don’t recommend doing this, as the difficulty in configuration often leads to poorer analysis results.
Why aren’t you able to use the Scanner for Maven? Generally – we reccomend using the best scanner for the job, rather than go one-size fits all.
By the way, would sonar scanner work for SQL as well? If I also have some repos that contain SQL which I would like scanned. Would appreciate your thoughts or any documentation on this.
Yes. No issues analyzing with the vanilla SonarScanner. The most configuration you have to do is making sure you’re analyzing the right flavor of SQL
Hi Colin, if I had some SQL ( PostgreSQL) code in my Maven repositories where I am running a SonarQube Maven scan, will the SQL be analyzed along with the Java code? Or do I need to configure anything additional in my Maven scan setup?
It depends where your SQL files rest in the repository. Can you share a file tree?