scalac: No 'scala-library*.jar' in Scala compiler classpath in Scala SDK Maven: org.scala-lang:scala-library:2.12.7
我正在进行一个大型的现有项目,该项目使用Java 8+Scala 2.12.7和Maven进行构建.我想使用IntelliJ旗舰版IDE,2023.1.2版,这是 compose 本文时的当前版本,来处理这个项目.
在shell 窗口中使用以下命令成功构建此项目:
mvn clean install -Dfast -DskipTests=true -Dscala-2.12
在IntelliJ项目 struct ->;平台设置->;全局库中,我下载了scala-sdk-2.12.7.没有配置其他全局库.
I see related stackoverflow threads like this one (No 'scala-library*.jar' in every new IntelliJ Scala Project) but that is years ago and while it's the same error message, the answers aren't helpful and most aren't applicable. I'm not using SBT. And I can't just upgrade to a newer Scala as this is a large legacy project.
我还做了几次"重建项目"和"无效缓存..."(通过重新启动).