plotply scala sbt未解决的依赖关系未找到

时间:2016-07-16 19:34:19

标签: scala intellij-idea sbt plotly

我正在尝试使用scala开始。我跟随他们guide的信,但是sbt返回错误:

Error:Error while importing SBT project:
[info] Resolving org.scala-sbt#run;0.13.8 ...
[info] Resolving org.scala-sbt#task-system;0.13.8 ...
[info] Resolving org.scala-sbt#tasks;0.13.8 ...
[info] Resolving org.scala-sbt#tracking;0.13.8 ...
[info] Resolving org.scala-sbt#cache;0.13.8 ...
[info] Resolving org.scala-sbt#testing;0.13.8 ...
[info] Resolving org.scala-sbt#test-agent;0.13.8 ...
[info] Resolving org.scala-sbt#test-interface;1.0 ...
[info] Resolving org.scala-sbt#main-settings;0.13.8 ...
[info] Resolving org.scala-sbt#apply-macro;0.13.8 ...
[info] Resolving org.scala-sbt#command;0.13.8 ...
[info] Resolving org.scala-sbt#logic;0.13.8 ...
[info] Resolving org.scala-sbt#precompiled-2_8_2;0.13.8 ...
[info] Resolving org.scala-sbt#precompiled-2_9_2;0.13.8 ...
[info] Resolving org.scala-sbt#precompiled-2_9_3;0.13.8 ...
[trace] Stack trace suppressed: run 'last *:update' for the full output.
[trace] Stack trace suppressed: run 'last *:ssExtractDependencies' for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: co.theasi#plotly_2.11;0.2.0: not found
[error] (*:ssExtractDependencies) sbt.ResolveException: unresolved dependency: co.theasi#plotly_2.11;0.2.0: not found
[error] Total time: 10 s, completed Jul 16, 2016 3:29:59 PM</pre><br/>See complete log in <a href="/home/michael/.IdeaIC2016.1/system/log/sbt.last.log">/home/michael/.IdeaIC2016.1/system/log/sbt.last.log</a>

有人可以帮我解决这个问题吗?

我的build.sbt如下:

name := "plotly"

version := "1.0"

scalaVersion := "2.11.8"

libraryDependencies += "co.theasi" %% "plotly" % "0.2.0"

1 个答案:

答案 0 :(得分:3)

maven central上只有0.1个版本 - link。并且0.2尚未发布。要使用0.2版本,请更改build.sbt文件:

resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
libraryDependencies += "co.theasi" %% "plotly" % "0.2-SNAPSHOT"
相关问题