在 Intellij 中刷新 sbt 项目时出现这些异常:
我删除了 .intellij
文件夹,但没有成功。
无论如何,到目前为止,一切似乎都按预期进行。
这是整个项目:https://github.com/pme123/play-binding-form
在 Justin Kaeser 发表评论后,我安装了 2018.2
,现在 Intellij 可以工作了,但现在我在 `sbt shell 中看到异常:
[info] Reapplying settings...
[info] Set current project to formRoot (in build file:/Users/mpa/dev/Github/pme123/play-binding-form/)
[error] a required artifact is not listed by module descriptor: *#*!*.*
[error] a required artifact is not listed by module descriptor: *#*!*.*
[error] a required artifact is not listed by module descriptor: *#*!*.*
...
最佳答案
我现在找到了导致问题的更改:
在 build.sbt
中我的共享配置:
lazy val shared = crossProject(JSPlatform, JVMPlatform)
.crossType(CrossType.Pure)
.settings(sharedSettings())
.settings(sharedDependencies)
.settings(
publish := {},
publishLocal := {},
publishArtifact := false, // this line caused the problem
)
删除该行后,它可以工作。
如果有人知道原因那就太好了!
关于scala - 智能 : a required artifact is not listed by module descriptor: *#*! *.*,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54366891/