Interview Prep/CI/CD/Build Tools, Nexus, SonarQube and Test Failures

`[ERROR] Failed to execute goal ... Could not resolve dependencies ... Could not transfer artifact ... from/to central ... Connect timed out`.

BeginnerTroubleshootingBuild Tools, Nexus, SonarQube and Test Failures
Answer

Likely causes → No route to Maven Central; proxy settings missing; mirror misconfigured.

Diagnose →

mvn -B -X dependency:resolve | grep -i 'mirror\|proxy'
curl -I https://repo.maven.apache.org/maven2/

Fix → Point settings.xml to the Nexus mirror or set the <proxy> block.

Prevent → Always use an internal repository proxy.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Build Tools, Nexus, SonarQube and Test Failures