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 @   feitiandamo  阅读(41)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
点击右上角即可分享
微信分享提示