Maven scanner failing with "Your project contains .java files..."

Hello,

Today, we started seeing this error when scanning Java Maven projects, using the maven sonar plugin: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.

Perhaps something is broken in the scanner, since this suddenly happens without any seemingly related code/configuration changes in our codebase?

EDIT: happens with at least sonar-maven-plugin versions: 5.5.0.6356 and 3.10.0.2594on Java 21.

Regards,
Jukka

Hello @jpalomaki,

Thank you for the report, there was indeed an issue on our end for gradle and maven scanners. It has now been fixed, please let us know if you still face issues.

Seems to be working, thanks