Sbt项目导入:错误和警告

时间:2015-05-18 21:01:16

标签: scala intellij-idea sbt

每次我在build.sbt中添加依赖项然后刷新Intellij以导入依赖项时它会抛出这样一个警告错误:

    [warn] [FAILED ] org.scalatools.time#time_2.8.0;0.5!time_2.8.0.jar(src): (0ms) 
    [warn] ==== local: tried 
    [warn] /home/xxx/.ivy2/local/org.scala-tools.time/time_2.8.0/0.5/srcs/time_2.8.0-sources.jar 
    [warn] ==== public: tried  
    [warn] https://repo1.maven.org/maven2/org/scala-tools/time/time_2.8.0/0.5/time_2.8.0-0.5-sources.jar 
    [warn] [FAILED ] org.scala-tools.time#time_2.8.0;0.5!time_2.8.0.jar(doc): (0ms) 
    [warn] ==== local: tried 
    [warn] /home/xxx/.ivy2/local/org.scala-tools.time/time_2.8.0/0.5/docs/time_2.8.0-javadoc.jar 
    [warn] ==== public: tried 
    [warn] https://repo1.maven.org/maven2/org/scala-tools/time/time_2.8.0/0.5/time_2.8.0-0.5-javadoc.jar 
    [warn]:::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] :: FAILED DOWNLOADS :: 
    [warn] :: ^ see resolution messages for details ^ :: 
    [warn] :::::::::::::::::::::::::::::::::::::::::::::: 
    [warn] :: org.scala-tools.time#time_2.8.0;0.5!time_2.8.0.jar(src) 
    [warn] :: org.scala-tools.time#time_2.8.0;0.5!time_2.8.0.jar(doc)
    [warn]

事实证明,我添加的依赖项是:

    libraryDependencies += "org.scala-tools.time" % "time_2.8.0" % "0.5"

完美找到并且我可以使用所有方法(至少看起来像......) 但我不明白为什么intellij会抛出这样的错误?

提前致谢。

1 个答案:

答案 0 :(得分:0)

为方便起见,IntelliJ正在尝试获取Scaladoc / Javadoc并为您的时间依赖项提供jars(请参阅(src)(doc)后缀),但这不是致命错误。