IntelliJ IDEA doesn't load Lift libraries from a SBT project

China☆狼群 提交于 2019-12-09 16:55:32

问题


I've created a blank project via sbt using the most basic guide, specifically:

> 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

however when I open the project in IntelliJ, it doesn't correctly recognize .jars downloaded via sbt. All imports are red

and when I go to project settings (Ctrl + Alt + Shift + S) in Libraries section, they are all greyed out.

Apart from that, the project sources are correctly recognized as Scala project with a Web facet

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:


Use sbt-idea to create the IntelliJ project structure. Re-run this each time you change the project structure or the library dependencies in your SBT build definition.

Instructions: SBT 0.10.x 0.11.x, SBT 0.7.x



来源:https://stackoverflow.com/questions/7703115/intellij-idea-doesnt-load-lift-libraries-from-a-sbt-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!