question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unresolved dependencies

See original GitHub issue

Hi

I’m trying the compile the spark-cassandra-connector, more especially the the tag v1.0.3. But every time I try compile the sbt shows the following problem:

[vanz@odin spark-cassandra-connector]$ sbt

[info] Loading project definition from /home/vanz/repos/spark-cassandra-connector/project
[info] Updating {file:/home/vanz/repos/spark-cassandra-connector/project/}spark-cassandra-connector-build...
[info] Resolving org.scala-lang#scala-reflect;2.10.3 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scala-lang#scala-library;2.10.3: configuration not found in org.scala-lang#scala-library;2.10.3: 'compile'. It was required from com.jsuereth#gpg-library_2.10;0.8.3 compile
[warn]  :: com.jcraft#jsch;0.1.46: configuration not found in com.jcraft#jsch;0.1.46: 'compile'. It was required from org.scala-sbt#ivy;0.13.5 compile
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.scala-lang#scala-library;2.10.3: configuration not found in org.scala-lang#scala-library;2.10.3: 'compile'. It was required from com.jsuereth#gpg-library_2.10;0.8.3 compile
unresolved dependency: com.jcraft#jsch;0.1.46: configuration not found in com.jcraft#jsch;0.1.46: 'compile'. It was required from org.scala-sbt#ivy;0.13.5 compile
    at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:213)
    at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:122)
    at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:121)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:116)
    at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:116)
    at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:104)
    at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:51)
    at sbt.IvySbt$$anon$3.call(Ivy.scala:60)
    at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98)
    at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81)
    at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
    at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
    at xsbt.boot.Using$.withResource(Using.scala:11)
    at xsbt.boot.Using$.apply(Using.scala:10)
    at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:102)
    at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:62)
    at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:52)
    at xsbt.boot.Locks$.apply0(Locks.scala:38)
    at xsbt.boot.Locks$.apply(Locks.scala:28)
    at sbt.IvySbt.withDefaultLogger(Ivy.scala:60)
    at sbt.IvySbt.withIvy(Ivy.scala:101)
    at sbt.IvySbt.withIvy(Ivy.scala:97)
    at sbt.IvySbt$Module.withModule(Ivy.scala:116)
    at sbt.IvyActions$.update(IvyActions.scala:121)
    at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1161)
    at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala:1159)
    at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$73.apply(Defaults.scala:1182)
    at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$73.apply(Defaults.scala:1180)
    at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:35)
    at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1184)
    at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1179)
    at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:45)
    at sbt.Classpaths$.cachedUpdate(Defaults.scala:1187)
    at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1152)
    at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1130)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
    at sbt.std.Transform$$anon$4.work(System.scala:64)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
    at sbt.Execute.work(Execute.scala:244)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
[error] (*:update) sbt.ResolveException: unresolved dependency: org.scala-lang#scala-library;2.10.3: configuration not found in org.scala-lang#scala-library;2.10.3: 'compile'. It was required from com.jsuereth#gpg-library_2.10;0.8.3 compile
[error] unresolved dependency: com.jcraft#jsch;0.1.46: configuration not found in com.jcraft#jsch;0.1.46: 'compile'. It was required from org.scala-sbt#ivy;0.13.5 compile

Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? 

I installed the scala and sbt using yum and there is no changes in the sources. What is wrong with my environment?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
zewemlicommented, Nov 17, 2014

I ran into the same error with Fedora 20. Removing ~/.sbt and ~/.ivy2 fixed the issue.

3reactions
c1316commented, Dec 6, 2016

I remove ~/.sbt and ~/.ivy2, and I reinstall sbt . then my problem is solved ,you can try that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unresolved Dependencies: how can I fix them? - Stack Overflow
After migrating to AndroidX in Android Studio, I am getting the following 3 Unresolved Dependencies: Unable to resolve dependency for ...
Read more >
Unresolved dependencies - No Magic Documentation
Before exporting or sharing a package as an independent used project, you need to identify and solve package dependencies first.
Read more >
Unresolved dependencies path - Question - Scala Users
I copied build.sbt and tried to compile, but I am getting “Unresolved dependencies path” (see below for details). Does anyone know what the ......
Read more >
Add details for fixing unresolved dependency error to ... - GitLab
The unresolved dependencies error is caused by a build.gradle (or build.gradle.kts ) file which contains unresolved dependencies. The issue that ...
Read more >
UNRESOLVED DEPENDENCIES for ReactiveMongo
But I am getting a dependency problem, I got this problem before but after some time trying it ... ResolveException: unresolved dependency: play.modules.rea...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found