{"errors":[{"msg":"Component key ' not found for all the projects during sonar analysis

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project x: Error 404 on https://sonar.x.com/sonar/api/sources/hash?key=com.dns.caps.x.x%3Ax%3Ax-commons%2Fsrc%2Fmain%2Fjava%2Fcom%2Fx%2Fx%2Fx%2Fx%2Fcommons%2Fx%2Fx%2FWorkflowServiceImpl%2Fx.java : {“errors”:[{“msg”:“Component key ‘com.x.x.x.x:x:x-commons/s/s/x/x/x/x/x/x/commons/x/x/x/x.java’ not found”}]} ->

Recently we have upgraded from sonar 7.1 to sonar 7.6 , and we are facing component key is not found for every projects during sonar analysis.

we are running job from jenkins pipeline which based on PR.

Please help this as soon as possible.

Temporary solution we found that , if we delete project from sonar , next run it will be successfully, but we don’t want to do this.

Here ‘x’ means dns name and project path, due to security regions , I have not mentioned.

Any update on this?


It looks like you’ve pinned an old version of the scanner in your poms, and I believe that’s the problem. I’d remove any version-pinning code and try again.