1. 程式人生 > >idea建立scala專案

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目錄