Sonarqube Build Failure with Error - Unable to load component class org.sonar.scanner.scan.ProjectLock

Sonarqube Version 6.7.2 (build 37468)
what are you trying to achieve: One major thing we perform is linting, building code and the last step of the build is Sonar analysis.


while building code, one of our developers encountered this error below:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:sonarqube’.

Unable to load component class org.sonar.scanner.scan.ProjectLock

Any idea why this could be happening?


Hi Vivek,

Here are some threads that might help you:

If none of them is relevant, then please provide more details about your situation:

  • SonarQube Edition
  • build command
  • SCM flavor
  • build environment (e.g. Jenkins, Travis, …)


1 Like

Hi Ann,

Thanks for your prompt response! I checked back with our developer who reported this, and It looks like the issue was auto-resolved and might not have been related to the Sonarqube configuration.

Best Regards,

Thanks for following up.