[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) on project maven-project: Not authorized. Please check the properties sonar.login and sonar.password. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
my command is mvn sonar:sonar -Dsonar.projectKey=xuejiangtao_maven-project -Dsonar.organization=xuejiangtao-github -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=xuejiangtao
Do you see that the sonar.login property is very different than yours?
Just for comparison, this is what happens when I use the âUse existing tokenâ option.
I think you used this option before. This wonât work, because the token is not valid (btw, suggestion to SonarSource: canât you validate this? Like, validating the length or something?)