`Could not find artifact com.example:lib:jar:1.2.0-SNAPSHOT` although it was just published.
IntermediateTroubleshootingBuild Tools, Nexus, SonarQube and Test Failures
Answer
Likely causes → Snapshot repo not in the group/mirror, local ~/.m2 caching a failed lookup (lastUpdated file), update policy interval.
Diagnose → Check Nexus for the artifact and ls ~/.m2/repository/com/example/lib/.
Fix → Add the snapshot repo, run mvn -U, remove *.lastUpdated files.
Prevent → Use release versions for cross-team dependencies.
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"`.IntermediateSonarQube scan: `ERROR: Not authorized. Analyzing this project requires authentication.`Beginner