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


(Vivek Mohan) #1

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.

Hello,

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?

Regards,
Vivek


(G Ann Campbell) #2

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, …)

Ann


(Vivek Mohan) #3

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,
Vivek


(G Ann Campbell) #4

Thanks for following up.