Scanner command used when applicable sonar-scanner or ./mvnw sonar:sonar -Dsonar.projectKey=triValence_scm-spring -Dmaven.repo.local=$MAVEN_USER_HOME -Dsonar.qualitygate.wait=true
Languages of the repository: java and angular
Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project scm-api: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator -> [Help 1]
ERROR: Error during SonarScanner execution
ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator
We haven’t changed anything on our side. I did try updating the SONAR_TOKEN to no avail.
I’ve verified the API keys are working for both projects by configuring the SonarLint plugin in Intellij and both are able to connect to the org and list projects.
I’m attaching logs that show a success when running on main and a failure when running on a merge request for an angular app and a springboot java app.
We’re experiencing the same problem, also from GitLab Merge Request analysis using the Maven scanner. We receive a link to check the details and the error says “project doesn’t exist”.
CE Task finished abnormally with status: FAILED, you can check details here: https://sonarcloud.io/api/ce/task?id=xxxxx
Our issue has been identified as related to our subscription status. The “project does not exist” error was because I did not have permissions to see the full error.