版权声明:创作不易,请勿抄袭,转载请注明出处。如有疑问,请加微信 wx15151889890,谢谢。 https://blog.csdn.net/wx740851326/article/details/84871083
安装了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目录