Maven resolve ☕ Java

[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

  1. Check the artifact on Maven Central
  2. Configure repositories/servers in settings.xml
  3. Force update: mvn -U clean install
  4. Delete the *.lastUpdated files for that artifact

Detailed fix by platform

Java

  1. mvn -U dependency:resolve

How to diagnose

  1. Artifact — Which coordinates?
  2. 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.