dnvriend / akka-persistence-inmemory

Akka-persistence-inmemory is a plugin for akka-persistence that stores journal and snapshot messages memory, which is very useful when testing persistent actors, persistent FSM and akka cluster
Apache License 2.0
134 stars 41 forks source link

unresolved dependency: com.github.dnvriend#akka-persistence-inmemory_2.11;1.1.5: not found #16

Closed hhimanshu closed 9 years ago

hhimanshu commented 9 years ago

My plugins.sbt looks like

logLevel := Level.Warn

resolvers += Classpaths.typesafeReleases
resolvers += Classpaths.sbtPluginReleases
resolvers += "dnvriend at bintray" at "http://dl.bintray.com/dnvriend/maven"
resolvers += Resolver.url("bintray-sbt-plugin-releases", url("http://dl.bintray.com/content/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

addSbtPlugin("com.typesafe.sbt" % "sbt-multi-jvm" % "0.3.8")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.3")

and Build.scala is

lazy val persistence = project
    .settings(commonSettings: _*)
    .settings(libraryDependencies ++= Seq(
      "com.typesafe.akka" %% "akka-persistence" % "2.4-SNAPSHOT",
      "org.iq80.leveldb" % "leveldb" % "0.7",
      "org.fusesource.leveldbjni" % "leveldbjni-all" % "1.8",
      "com.github.dnvriend" %% "akka-persistence-inmemory" % "1.1.5" % "test"
    ))

when I try to update my project, I see

> update
[info] Updating {file:/Users/harit/IdeaProjects/akka101/}akka101...
[info] Updating {file:/Users/harit/IdeaProjects/akka101/}test_harness...
[info] Updating {file:/Users/harit/IdeaProjects/akka101/}cluster_simple...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Updating {file:/Users/harit/IdeaProjects/akka101/}persistence...
[info] Resolving com.github.dnvriend#akka-persistence-inmemory_2.11;1.1.5 ...
[warn]  module not found: com.github.dnvriend#akka-persistence-inmemory_2.11;1.1.5
[warn] ==== local: tried
[warn]   /Users/harit/.ivy2/local/com.github.dnvriend/akka-persistence-inmemory_2.11/1.1.5/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/com/github/dnvriend/akka-persistence-inmemory_2.11/1.1.5/akka-persistence-inmemory_2.11-1.1.5.pom
[warn] ==== Typesafe Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com/github/dnvriend/akka-persistence-inmemory_2.11/1.1.5/akka-persistence-inmemory_2.11-1.1.5.pom
[info] Resolving jline#jline;2.12.1 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.github.dnvriend#akka-persistence-inmemory_2.11;1.1.5: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Unresolved dependencies path:
[warn]      com.github.dnvriend:akka-persistence-inmemory_2.11:1.1.5 (/Users/harit/IdeaProjects/akka101/project/Akka101Build.scala#L33)
[warn]        +- com.learner:persistence_2.11:0.1.0
[trace] Stack trace suppressed: run last persistence/*:update for the full output.
[error] (persistence/*:update) sbt.ResolveException: unresolved dependency: com.github.dnvriend#akka-persistence-inmemory_2.11;1.1.5: not found
[error] Total time: 1 s, completed Nov 26, 2015 10:01:03 PM
> 

what am I doing wrong?

hhimanshu commented 9 years ago

It was my mistake on putting resolvers in plugins and not in build file since I am new and do not know it better. The issue is resolved. Thank you