Used software:
SonarQube 2025.1 Developer
SonarScanner for Maven 5.0
Hi Community,
After upgrading to SonarQube 2025.1 LTA Developer from 9.9.8 LTA, we faced the following error messages during the sonar scan process with the maven plugin:
16:24:00.869 [INFO] js security sensor: Time spent was 00:00:00.001
16:24:00.869 [INFO] js security sensor: Begin: 2025-02-05T14:24:00.817651437Z, End: 2025-02-05T14:24:00.818856185Z, Duration: 00:00:00.001
16:24:00.869 Load type hierarchy and UCFGs: Begin: 2025-02-05T14:24:00.818234611Z, End: 2025-02-05T14:24:00.818593984Z, Duration: 00:00:00.000
16:24:00.869 Load type hierarchy: Begin: 2025-02-05T14:24:00.818265632Z, End: 2025-02-05T14:24:00.818423301Z, Duration: 00:00:00.000
16:24:00.869 Load UCFGs: Begin: 2025-02-05T14:24:00.818492249Z, End: 2025-02-05T14:24:00.818533009Z, Duration: 00:00:00.000
16:24:00.869 [INFO] js security sensor peak memory: 396 MB
16:24:00.869 [INFO] Sensor JsSecuritySensor [security] (done) | time=2ms
16:24:00.869 [INFO] ------------- Run sensors on project
16:24:00.869 [ERROR] [stderr] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
16:24:00.869 [ERROR] [stderr] SLF4J: Defaulting to no-operation (NOP) logger implementation
16:24:00.869 [ERROR] [stderr] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
16:24:01.129 [INFO] Sensor ArchitectureSensor [architecture]
16:24:01.389 [INFO] Sensor ArchitectureSensor [architecture] (done) | time=381ms
16:24:01.389 [INFO] Sensor Zero Coverage Sensor
16:24:01.389 [INFO] Sensor Zero Coverage Sensor (done) | time=1ms
It is not only annoying to have some “red marked messages” in the console output, but it impacts our CI system workflow as it detects ERROR lines from the output and fails our builds.
I’ve made an investigation, and looks like it some sensors use different SLF4J versions.
Could you please advise how we can solve it? (Maybe disable some sensors in SonarQube etc …)
Thank you for your advice!