I am trying to run sonar:sonar command, and I am getting this error:
Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar (default-cli) on project my-project: Failed to create temp file C:\Workspace\my-project\backend\target\sonar.sonartmp\scanner-report5607317958216813555.zip
hey,
we had the same problem (only after upgrading to sonar 9.4), sonar could not create the report zip because .sonartmp folder does not exist.
root cause was that we have a multi module project, and 2 /target folders were pointing to the same location. my guess is that after being done with one module sonar cleaned up (i.e. deleted the .sonartmp folder) that was still necessary to do the other module
hope it helps