During our first scan of a new project we keep getting
“Failed to load the quality profiles of project ‘acs-bridge’: Component key ‘acs-bridge’ not found”
I’ve run it with -X as well and then we get the following (truncated) output
19:23:50.487 DEBUG: GET 404 https://sonarcloud.io/api/qualityprofiles/search.protobuf?projectKey=acs-bridge | time=95ms
19:23:50.499 INFO: ------------------------------------------------------------------------
19:23:50.499 INFO: EXECUTION FAILURE
19:23:50.499 INFO: ------------------------------------------------------------------------
19:23:50.499 INFO: Total time: 33.609s
19:23:51.040 INFO: Final Memory: 29M/855M
19:23:51.040 INFO: ------------------------------------------------------------------------
19:23:51.041 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.report.MetadataPublisher
at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:65)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:621)
at ....
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.rule.QualityProfiles
at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:65)
at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
at ...
Any ideas how we can resolve this? What have we forgotten when setting up the project?
Btw, a couple of lines before we see “GET 200 https://sonarcloud.io/batch/project.protobuf?key=acs-bridge | time=96ms” so it seems the project exists at least.
Thanks!