Interview Prep/CI/CD/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.

BeginnerScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer

Situation read → Direct dependency on a public registry.

What I'd do →

  1. Run Nexus Repository with a maven-central proxy repo and a maven-public group repo.
  2. Add a mirror in settings.xml:
<mirror>
  <id>nexus</id>
  <mirrorOf>*</mirrorOf>
  <url>https://nexus.example.com/repository/maven-public/</url>
</mirror>
  1. 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.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Builds, Artifacts, Nexus, SonarQube and Testing