首页 文章

IntelliJ IDEA不从SBT项目加载Lift库

提问于
浏览
7

我使用最基本的指南通过 sbt 创建了一个空白项目,具体来说:

> cd xyz
> sbt # here we create a new project w/ Scala 2.8.1
> *lift is org.lifty lifty 1.6.1
> lift create project-blank

但是当我在IntelliJ中打开项目时,它无法正确识别通过sbt下载的.jars . 所有进口都是红色的

red imports

当我进入“库”部分的项目设置(Ctrl Alt Shift S)时,它们都是灰色的 .

greyed out libraries

除此之外,项目源被正确识别为具有Web构面的Scala项目

project structure

Did I forget to configure something? I've already tried to create a project via maven using this guide, but I'd very much prefer to use SBT instead of maven.

1 回答

  • 9

    使用 sbt-idea 创建IntelliJ项目结构 . 每次更改SBT构建定义中的项目结构或库依赖项时,请重新运行此项 .

    说明:SBT 0.10.x 0.11.xSBT 0.7.x

相关问题