sbt "unresolved dependency" in CI
Ivy walked your resolvers looking for the module and revision and came back empty. sbt prints "unresolved dependency" with the exact organization, name, and revision it could not satisfy.
What this error means
sbt update fails with "[error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: org#name;1.0.0: not found".
[error] (update) sbt.librarymanagement.ResolveException: unresolved dependency:
com.typesafe.akka#akka-actor_2.13;2.6.99: not foundCommon causes
The revision does not exist
The version pinned in libraryDependencies was never published (a typo like 2.6.99), so Ivy finds the module but no matching revision.
A private repository is missing or unauthenticated
The module is only on an internal Nexus/Artifactory that CI never adds to resolvers, or the credentials for it are not injected.
How to fix it
Pin a published revision
- Check the library page for a real released version.
- Update the revision in
libraryDependencies. - Run
sbt updateto confirm it resolves.
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.6.21"Add credentials for a private resolver
Supply repository credentials from CI secrets so the internal resolver returns the artifact instead of 401.
credentials += Credentials(
"Artifactory Realm", "nexus.example.com",
sys.env("NEXUS_USER"), sys.env("NEXUS_PASS"))How to prevent it
- Verify versions against the published metadata before pinning them.
- Store private resolver credentials in CI secrets, not in the repo.
- Restore
~/.ivy2and~/.coursiercaches so resolution is fast and stable.