Developers ask whether to use a mono-repo or many repos for CI purposes.
AdvancedScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → An architectural decision with CI consequences.
What I'd do →
- Mono-repo: atomic cross-service changes and shared tooling, but requires change detection, caching, ownership rules (CODEOWNERS) and a build system that scales.
- Poly-repo: independent pipelines and permissions, but dependency version drift and cross-repo changes are harder.
- Choose based on team structure and release independence.
Why → CI cost model and org boundaries should drive the decision.
Interview tip → Mention Conway's law.
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