Nothing yet, apparently it is an issue with java maven projects with multimodules, when trying to create and clean the folder a temporary file for the parent pom.
In your case is it also a project with java maven multimodules?
Yes, it’s a project with java maven multimodules too.
We tried to launch it using a sonarqube instance with the sonar 9.3 version and it works. Maybe the solution is to downgrade but we haven’t already did it (it could cause other bugs). If you have the same problem, it could be a solution for you (for this project at least)
We tried to launch it with a sonar 9.0 community and it works. So, we’re trying to find the last version we can use. It looks like an upgrade cause this …
Have you got any workaround to use one of the last versions please ?
Thanks for pointing out your overlooked thread. I’ve combined it here (altho normally precedence would go to the older thread).
Can you add debug logging (-X I believe, for Maven) and provide the full analysis log? Also, is this replicable with the current version, SonarQube 9.8?
Hi @ganncamp ,
Thanks for your answer.
Yes, i tried with 9.8 version and we got the same problem.
Debug logging inside the file, thanks. mvn-execution.log (109.0 KB)
Hello,
Thanks for your answer.
That’s the only repo on which we have this problem, i’ll try to find the difference with others but the structure is supposed to be the same (and i can’t share the repo because it’s confidential). If i find how to do a simple reproducer, i’ll share you it , thanks.
Or @Jordan_Nicolich_Cast , is your repo on which the problem happenned confidential ? Could you share it to sonar ?
Hello, my repository is confidential, I am working on replicating the error
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:50 min
[INFO] Finished at: 2023-02-01T08:15:05-05:00
[INFO] Final Memory: 186M/1548M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project bcp-ntlc-parent: Failed to create temp file: /project/data/target/sonar/.sonartmp/scanner-report918138397002279506.zip -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project bcp-ntlc-parent: Failed to create temp file
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create temp file
at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:67)
at org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:108)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more