The Maven build is slow on multi-module projects.
IntermediateScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Serial modules and repeated work.
What I'd do →
- Build in parallel with
mvn -T 1C -B verify. - Skip unchanged modules with
-pland-amd(also-make-dependents) based on the change set. - Separate fast unit tests from slow integration tests (Surefire vs Failsafe).
- Use the Maven daemon (
mvnd) locally and a dependency proxy in CI.
Why → Parallelism and building only what is affected gives most of the gain.
Interview tip → -amd and -pl show Maven fluency.
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