Developers run `mvn deploy` locally and push artifacts that CI never built.
AdvancedScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Artifact provenance gap.
What I'd do →
- Remove deploy credentials from developers; only the CI service account can write to release repos.
- Developers may write to a separate sandbox/snapshot repo if needed.
- Add provenance metadata and verify it before promotion.
Why → Production artifacts must come from a controlled, auditable build.
Interview tip → Separate who can build from who can publish.
More on Builds, Artifacts, Nexus, SonarQube and Testing
A Maven project resolves dependencies from Maven Central on every build and a left-pad style outage would stop all builds.BeginnerYou must publish snapshot and release artifacts without overwriting a released version.IntermediateEvery merge to main should produce a unique semantic version automatically.IntermediateAn npm build is non-reproducible: different versions install on different days.BeginnerThe SonarQube quality gate must block merging PRs that add new bugs, vulnerabilities or uncovered code.IntermediateCoverage shows 0% in SonarQube although tests run in CI.Intermediate