SonarQube scan: `ERROR: Not authorized. Analyzing this project requires authentication.`
BeginnerTroubleshootingBuild Tools, Nexus, SonarQube and Test Failures
Answer
Likely causes → Missing or invalid SONAR_TOKEN.
Diagnose → curl -u $SONAR_TOKEN: https://sonar/api/authentication/validate.
Fix → Generate a project analysis token and set SONAR_TOKEN as a secret.
Prevent → Use scoped analysis tokens per project.
More on Build Tools, Nexus, SonarQube and Test Failures
`[ERROR] Failed to execute goal ... Could not resolve dependencies ... Could not transfer artifact ... from/to central ... Connect timed out`.Beginner`Return code is: 401, ReasonPhrase: Unauthorized` on `mvn deploy` to Nexus.Beginner`Return code is: 400, ReasonPhrase: Repository does not allow updating assets: maven-releases`.Beginner`Return code is: 413, ReasonPhrase: Request Entity Too Large` when uploading an artifact.Intermediate`npm ERR! code E401` / `Unable to authenticate, need: Basic realm="Sonatype Nexus Repository Manager"`.Intermediate`ERROR: Quality gate failed` but the dashboard looks fine on the main branch.Intermediate