Not able to run sonar maven plugin with verbose or debug level

sonar-maven-plugin:3.8.0.2131:sonar
SonarQube version: 8.9.1 community

I am trying to run sonar:sonar -Dsonar.host.url=http://XX.XX.XX.XX -Dsonar.login=admin -Dsonar.password=admin123 -Dverbose=true
but not able to get any debug lines.

My job is failing with

[INFO] Sensor CSS Rules [cssfamily]
[ERROR] CSS rules were not executed. Failed to start server (60s timeout)
org.sonarsource.nodejs.NodeCommandException: Failed to start server (60s timeout)
at org.sonar.css.plugin.server.CssAnalyzerBridgeServer.startServer(CssAnalyzerBridgeServer.java:113)

Please help

1 Like

Hi,

Welcome to the community!

Per the docs, you need to have Node.js installed on your analysis machine.

Regarding logging, I think you’re looking for -Dsonar.verbose=true.

 
HTH,
Ann

After a lot of searching I figured if you need to use -X parameter for maven so that debug logs are visible.

2 Likes

@Mrinal_Nath Any idea on how to enable the trace level? with -Dsonar.log.level=TRACE maven swallows those messages

@ganncamp The docs refer only to the parameter for the log level. Maybe they should include that the -X switch is necessary when scanning using maven?

Hi @oliver,

-X is build-system-specific. We don’t document that because we assume folks will master their own build systems.

 
:woman_shrugging:
Ann