[ERROR] Failed to execute goal on project x: Could not resolve dependencies for project
Maven couldn’t download or find one or more dependencies.
Seen on:
Java
Meaning
Wrong coordinates/versions, private repositories without credentials in settings.xml, offline mode, corporate proxies, or a cached failed lookup (".lastUpdated").
Common causes
- Typo or non-existent version
- Private repo without credentials
- Proxy blocking Maven Central
- Cached failure in ~/.m2 (*.lastUpdated)
⚡ Quick fix
- Check the artifact on Maven Central
- Configure repositories/servers in settings.xml
- Force update: mvn -U clean install
- Delete the *.lastUpdated files for that artifact
Detailed fix by platform
Java
mvn -U dependency:resolve
How to diagnose
- Artifact — Which coordinates?
- Repository — Which repos were searched?
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 2 Oct 2026