如何在 Intellij Idea 中使用自定义 sbt 版本? [英] How to use custom sbt version in Intellij Idea?

查看:55
本文介绍了如何在 Intellij Idea 中使用自定义 sbt 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 scala sbt 项目.当我在 intellij 中打开终端并执行 sbt sbtVersion 时,我看到 0.13.8.我想使用我自己的本地安装,即 0.13.5.当我打开一个新的命令提示符时,我看到 sbt 版本是 0.13.5,但在 IntelliJ 终端中,即使我将设置-> SBT"配置为指向自定义的sbt",它仍然一直显示 0.13.8-launch.jar"而不是捆绑.如何让 IntelliJ 使用我的旧版本"SBT?

I have a scala sbt project. When I open a terminal in intellij and do sbt sbtVersion, I see 0.13.8. I want to use my own local install that is 0.13.5. When I open up a new command prompt, I see that the sbt version is 0.13.5, but in the IntelliJ terminal, it keeps saying 0.13.8 even though I configured my "Settings->SBT" to point to a custom "sbt-launch.jar" instead of bundled. How to I get IntelliJ to use my "older version" of SBT?

我遇到的主要问题是:

服务器访问错误:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

我听说 SBT 0.13.5 是要使用的版本,但我无法告诉 IntelliJ 使用它.

I heard that SBT 0.13.5 is the version to use, but I am having trouble telling IntelliJ to use it.

推荐答案

如截图所示在

偏好 |构建、执行、部署 |构建工具 |SBT.

Preferences | Build,Execution,Deployment | Build Tools | SBT .

在该对话框中,它是下面的最后一个选项

In that dialog it is the last option under

启动器 (sbt-launch.jar)

Launcher (sbt-launch.jar)

这篇关于如何在 Intellij Idea 中使用自定义 sbt 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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