Resolver issue when offline (without connection)

67 views
Skip to first unread message

Maatary Okouya

unread,
Aug 17, 2014, 10:49:41 AM8/17/14
to simple-b...@googlegroups.com
I try to work on my project while in an no internet connection zone. To my surprise, sbt is having trouble in that situation. Although, i'm supposed to have my libraries in the cache (given that i initially started the project online), sbt can't resolve some dependency. 


***Sbt can't fetch my local maven repository, neither can he find some other dependency that i thought he downloaded already (i.e. in the cache).*** 


*

>> My question is: how to ensure that  when i have the connection, sbt fetches the libs in the cache ONCE, so that when i don't have it, it fetches all my local repo including the one of maven.

 I'm asking this because to my understanding of the current situation (i.e. when no internet connection is available):

 1. sbt has trouble downloading from the maven cache
 2. sbt can find find most of my dependency in ivy local
 3. sbt can't find some specific dependency that for certain reasons,
    apparently were not cached.


For instance here is a trace of libs that sbt was supposed to have cached already but can't find when i don't have my connection

    [warn]   file:///Users/maatary/.m2/repository/com/google/inject/extensions/guice-assistedinject/4.0-beta4/guice-assistedinject-4.0-beta4.pom
    [info] Resolving com.google.inject.extensions#guice-multibindings;4.0-beta4 ...
    **[info] You probably access the destination server through a proxy server that is not well configured.**
    [warn]  module not found: com.google.inject.extensions#guice-multibindings;4.0-beta4
    **[warn] ==== local: tried
    [warn]   /Users/maatary/.ivy2/local/com.google.inject.extensions/guice-multibindings/4.0-beta4/ivys/ivy.xml**
    [warn] ==== public: tried
    [warn] ==== Local Maven Repository: tried
    [warn]   file:///Users/maatary/.m2/repository/com/google/inject/extensions/guice-multibindings/4.0-beta4/guice-multibindings-4.0-beta4.pom
    [info] Resolving jline#jline;2.12 ...                                          
    [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
    [warn]  ::          UNRESOLVED DEPENDENCIES         ::
    [warn]  ::::::::::::::::::::::::::::::::::::::::::::::
    [warn]  :: com.google.inject.extensions#guice-assistedinject;4.0-beta4: not found
    [warn]  :: com.google.inject.extensions#guice-multibindings;4.0-beta4: not found
Reply all
Reply to author
Forward
0 new messages