如何从IntelliJ IDEA中运行sbt-assembly任务? [英] How to run sbt-assembly tasks from within IntelliJ IDEA?

查看:796
本文介绍了如何从IntelliJ IDEA中运行sbt-assembly任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从IntelliJ IDEA中运行 sbt-assembly

Is it possible to run sbt-assembly from within IntelliJ IDEA?

此外,我在文档中读到可以在SBT工具窗口中添加任务。但我看到的是,它只能帮助您查看项目而非任务?我不能在那里添加任何任务。工具窗口如何正常工作?

Also I read in the doc that one could add task within the SBT Tool window. But what I see is that it only helps you view your project not task? I cannot add any tasks there. How does the Tool window work exactly?

我有最新版本的IntelliJ IDEA。

I have the last version of IntelliJ IDEA.

推荐答案

这个答案现在已经过时了。
IntelliJ现在允许您为SBT任务创建运行配置。您可以通过以下方式创建运行配置:

This answer is now out-of-date. IntelliJ now allows you to create a run configuration for an SBT task. You create the Run Configuration by :


  • 从运行菜单(或工具栏
    弹出窗口)中选择编辑配置

  • 点击+按钮添加配置并选择
    SBT Task作为您要进行的配置类型。

  • 如有必要,填写详细信息,如任务名称和
    工作目录

您现在可以运行任务与任何其他运行配置相同;在工具栏中的运行配置弹出窗口中选择它,然后单击运行按钮(或者如果您是那些仅限键盘的人之一,请按shift-ctrl-r并从显示的弹出窗口中选择任务)

You can now run the task in the same way as any other run configuration; select it in the run configuration popup in the toolbar and click the run button (or if you're one of those keyboard-only people press shift-ctrl-r and select the task from the popup that appears)

官方文档: https://www.jetbrains.com/help/idea/2016.2/run-debug-configuration-sbt-task.html

这篇关于如何从IntelliJ IDEA中运行sbt-assembly任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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