当使用Intellij idea与sbt时,我得到了错误。
[error] (updateSbtClassifiers) lmcoursier.internal.shaded.coursier.error.FetchError$DownloadingArtifacts: Error fetching artifacts:
[error] https://repo1.maven.org/maven2/org/webjars/npm/4.2.0/npm-4.2.0-sources.jar: not found: https://repo1.maven.org/maven2/org/webjars/npm/4.2.0/npm-4.2.0-sources.jar
Intellij Idea 版本:2018.1 (是的,我知道这是老版本,但可能在新版本上也发生过)
如何解决这个问题?
有一个(当前 未决问题 为的。
我不太清楚为什么会这样,可能是 这个stackoverflow的答案 会解释 为什么会这样? 是发生了这种情况。
不过总结一下,在那个帖子上有一个适合我的答案。
...
I think I solved the issue. In IntelliJ IDEA, go to
Preferences => Build, Execution, Deployment =>
Build Tools => sbt => sbt projects.
Untick "Library sources" & "sbt sources".
I tested it on 2019.3.4 & 2020.1. Both versions work correctly.
...
希望能帮到别人:)