Build uses a cached layer and ships stale code.
AdvancedTroubleshootingBuild Tools, Nexus, SonarQube and Test Failures
Answer
Likely causes → COPY . . before dependency steps or a cache key not invalidating on source changes; stale remote cache.
Diagnose → docker build --progress=plain and look for CACHED.
Fix → Fix layer order, and use --no-cache or invalidate cache for the release build.
Prevent → Bake the commit SHA into the image label and verify at deploy.
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