Interview Prep/CI/CD/Build Tools, Nexus, SonarQube and Test Failures

`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.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Build Tools, Nexus, SonarQube and Test Failures