Sbt run command warning UNRESOLVED DEPENDENCIES

时间:2018-01-02 10:06:38

标签: java scala maven warnings

我想执行一个从github克隆的scala程序。所以,当我运行命令行' sbt run'在我的工作目录中运行scala程序,它没有工作并给我这个警告:

>[info] downloading https://repo1.maven.org/maven2/com/typesafe/akka/akka-stream_2.11/2.4.14/akka-stream_2.11-2.4.14.jar ...
>[info]     [SUCCESSFUL ] com.typesafe.akka#akka-stream_2.11;2.4.14!akka-stream_2.11.jar (64108ms)


>[warn]     ::::::::::::::::::::::::::::::::::::::::::::::

>[warn]     ::          UNRESOLVED DEPENDENCIES         ::

>[warn]     ::::::::::::::::::::::::::::::::::::::::::::::

>[warn]     :: com.typesafe.akka#akka-actor_2.11;2.4-SNAPSHOT: not found

>[warn]     :: com.typesafe.akka#akka-contrib_2.11;2.4-SNAPSHOT: not found

>[warn]     :: com.typesafe.akka#akka-testkit_2.11;2.4-SNAPSHOT: not found

>[warn]     ::::::::::::::::::::::::::::::::::::::::::::::

>[warn]     Note: Unresolved dependencies path:

>[warn]         com.typesafe.akka:akka-contrib_2.11:2.4-SNAPSHOT (/Users/USERNAME/.sbt/0.13/staging/37c68d5979975b2c113c/actoverse-scala/build.sbt#L7-15)
>[warn]           +- actoverse-for-akka:actoverse-for-akka_2.11:1.0

>[warn]         com.typesafe.akka:akka-testkit_2.11:2.4-SNAPSHOT (/Users/USERNAME/.sbt/0.13/staging/37c68d5979975b2c113c/actoverse-scala/build.sbt#L7-15)
>[warn]           +- actoverse-for-akka:actoverse-for-akka_2.11:1.0
sbt.ResolveException: unresolved dependency: com.typesafe.akka#akka-actor_2.11;2.4-SNAPSHOT: not found

>unresolved dependency: com.typesafe.akka#akka-contrib_2.11;2.4-SNAPSHOT: not found

>unresolved dependency: com.typesafe.akka#akka-testkit_2.11;2.4-SNAPSHOT: not found

这意味着什么?我已经找到了问题,但我找不到任何东西

1 个答案:

答案 0 :(得分:0)

这意味着maven在maven central上找不到指定的2.4-SNAPSHOT版本的akka​​-aktor_2.11,akka-contrib_2.11和akka-testkit_2.11。如果一切按预期工作,请不要担心,这是什么"警告"试图告诉你。如果您确实遇到问题,请在其他地方查找这些版本或使用不是快照的版本 - 如果它实际上是一个版本,您将有更高的可能性。