每次我在构建中添加依赖项。然后刷新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"
工作完美找到,我可以使用所有的方法(至少因为它看起来是…)但是我不明白为什么intelllij总是抛出这样的错误?
IntelliJ试图获取Scaladoc/Javadoc和源代码jar文件的时间依赖(参见(src)
和(doc)
后缀)为您的方便,但这不是一个致命的错误。