idea创建scala项目

本文详细介绍了如何在IntelliJ IDEA中安装并配置Scala插件,以及如何下载和配置sbt,包括编辑sbtconfig.txt和repo.properties文件来设置镜像源,最后在IDEA中设置sbt的vm参数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装了scala插件
file 》setting》plugins搜SCALA安装完之后重启,
晚上下载sbt安装。
配置sbtsbt\conf
编辑sbtconfig.txt

-Dsbt.log.format=true
-Dsbt.ivy.home=C:/softwares/sbt/.ivy2
-Dsbt.global.base=C:/softwares/sbt/.sbt
-Dsbt.repository.config=C:/softwares/sbt/conf/repo.properties

同目录下,编辑镜像源文件repo.properties(没有就创建)

[repositories]
  local
  aliyun: http://maven.aliyun.com/nexus/content/groups/public/
  central: http://repo1.maven.org/maven2/

然后在IDEA里主要设置下setting里的sbt
vm参数如下:

-Dsbt.override.build.repos=true
-XX:MaxPermSize=512M
-Dsbt.log.format=true
-Dsbt.ivy.home=C:/softwares/sbt/.ivy2
-Dsbt.global.base=C:/softwares/sbt/.sbt
-Dsbt.boot.directory=C:/softwares/.sbt/boot/
-Dsbt.repository.config=C:/softwares/sbt/conf/repo.properties

然后启动指定你的sbt目录

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值