4

I'm trying to run Sonar analysis via Maven, but it continually complains:

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project mio-commons: Another SonarQube analysis is already in progress for this project -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:

There is no analysis for this project in progress, and I've even tried deleting the project itself from Sonar. Any ideas what the issue might be?

2
  • Can you please add more details? What SonarQube version? Which command did you run? Does it happen for other projects or only this one? Dec 7, 2015 at 10:21
  • 3
    Unfortunately, deleting ~/.sonar/cache and .scannerwork did not help. Do you have any other ideas? Mar 3, 2019 at 19:07

3 Answers 3

13

I solved it, I guess, deleting ${basedir}/.sonar folder.

1
  • I also killed all java.exe processes.
    – berkant
    Mar 23, 2020 at 6:19
6

For me, deleting ${projectDir}/.scannerwork fixed the problem.

Command on linux:

$ <your project directory>
$ rm -rf .scannerwork

I am using sonarqube version 7.0 and sonar-scanner version 3.0.3.778

5

The cache directory is displayed in the console logs. Deleting that worked for me. For me, it was under

 C:\Users\<username>\.sonar\cache

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.