A Maven project resolves dependencies from Maven Central on every build and a left-pad style outage would stop all builds.
BeginnerScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Direct dependency on a public registry.
What I'd do →
- Run Nexus Repository with a
maven-centralproxy repo and amaven-publicgroup repo. - Add a mirror in
settings.xml:
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>https://nexus.example.com/repository/maven-public/</url>
</mirror>
- Give CI a read-only account and restrict outbound internet from agents.
Why → Cached artifacts keep builds working during outages and give you one audit point.
Interview tip → mirrorOf * sends all requests through Nexus.
More on Builds, Artifacts, Nexus, SonarQube and Testing
You 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.IntermediateA big legacy codebase fails every Sonar gate. Teams ignore the tool. How do you adopt it?Intermediate