Authorization failure

Hello,

I have launched SonarQube from .zip file on Windows, it’s running on 9000 port locally, and when I perform on my project root:

.\mvnw clean verify sonar:sonar -Dsonar.login=global-analysis-token

I get an error:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) o
n project spring-boot-security-login: You're not authorized to run analysis. Please contact the project administ
rator. -> [Help 1]

I’ve tried doing -Dsonar.login and --Dsonar.password with Admin account (before that allowing Analysis permissions), but still no luck. What am I missing? Thanks.

Hey there.

What version of SonarQUbe are you using? It’s requested in the template post. :slight_smile:

@Colin, hi, it’s the newest one, I’ve just downloaded it several days ago (9.9 LTS).

Thanks.

sonar.login is the right analysis parameter to use.

Does the user for whom the global analysis token have permissions to Create Projects on your SonarQube instance? This is relevant if the project doesn’t already exist in SonarQube.