如何强制IntelliJ IDEA在build.sbt更改后重新加载依赖项? [英] How to force IntelliJ IDEA to reload dependencies from build.sbt after they changed?

查看:1519
本文介绍了如何强制IntelliJ IDEA在build.sbt更改后重新加载依赖项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有Scala插件的IntelliJ IDEA 13(社区版)。

I'm using IntelliJ IDEA 13 (Community Edition) with the Scala plugin.

我最初导入的现有Scala项目的 build.sbt 工作正常。 IDEA接收了库依赖项。虽然我已经检查了自动导入选项,但是在初始导入后添加了其他依赖项。

My initial import of an existing Scala project with a build.sbt worked fine. The library dependencies were picked up by IDEA. Additional dependencies added after the initial import were not picked up, although I had checked the auto-import option.

如何强制IDEA从 build.sbt 重新加载依赖项?

How can I force IDEA to reload the dependencies from build.sbt?

推荐答案

您可以强制SBT重新加载更改:
打开SBT工具窗口(在IDE的右侧)并按下刷新按钮。

You can force SBT to reload changes: Open SBT toolwindow (on the right side of IDE) and press refresh button.

如果您使用自动 - 导入功能,您需要保存文件以强制自动刷新。

If you use auto-import feature you need to save your file to force auto-refresh.

这篇关于如何强制IntelliJ IDEA在build.sbt更改后重新加载依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆