We are currently using the Maven Sonar scanner plugin to perform automated scanning of our multi-module Java project. We run a single analysis from the parent project and everything works well.
In order to speed up our builds, we are also integrating the Maven build cache. However, this causes the Maven Sonar Scanner plugin to fail with this error, since there aren’t necessarily compiled classes for every module.
We are asking for the team to take a look at upgrading the Maven Sonar scanner plugin to support integration with the Maven build cache extension.
Have others experienced this issue? If so, are there clever ways to configure the Maven Sonar scanner plugin to only discover and analyze the modules which have compiled code available? Thanks!