idea创建scala项目

安装了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目录

posted @ 2022-07-27 21:09  feitiandamo  阅读(47)  评论(0)    收藏  举报