scala - 智能 : a required artifact is not listed by module descriptor: *#*! *.*

标签 scala intellij-idea sbt

在 Intellij 中刷新 sbt 项目时出现这些异常:

enter image description here

我删除了 .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/

相关文章:

java - Wicket 的 Scala 版本

java - 预期的类或接口(interface),这个简单的代码有什么问题?

scala - SBT 子项目内存不足

scala - SBT 依赖项的 Docker 数据量

scala - 如何使用 scala sbt 构建多个 jar 文件

scala - Spark/Scala : Expand a list of (List[String], 字符串)元组

scala - 提取元组列表中的第二个元组元素

arrays - 生成新数组,其中所有正数首先出现,然后是负数或零,但顺序相同

java - 停止 IntelliJ 使用模块名称污染项目工具窗口?

java - 为@Transactional 方法禁用警告 "Access can be package-private"