Skip to content

Maven scanner: Warning: sonar.java.binaries not set; #228

Description

@hylkevds

I don't know when the maven scanner started giving this error but it no longer finds the compiled classes:

Warnings in last analysis
Java analysis is running without compiled classes, which can lead to less accurate results.
Please set 'sonar.java.binaries' to the location of your compiled classes.
Affected modules: de.fraunhofer.iosb.ilt.FROST-Server:FROST-Server.Tests.

And in the workflow log:

Warning: sonar.java.binaries not set; pointing to empty placeholder /home/runner/work/FROST-Server/FROST-Server/target/sonar/.sonartmp/java-empty-binaries to allow analysis to proceed

I would expect the maven plugin to automatically configure the default maven locations for compiles classes. The example project here also does not configure them.

If it helps, the project is
https://github.com/FraunhoferIOSB/FROST-Server/
And one of the workflows showing the failure is:
https://github.com/FraunhoferIOSB/FROST-Server/actions/runs/29238903507/job/86779989686

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions