Linux sbt安装配置

1.sbt官网下载,xftp放到/opt/sbt

centos7 安装配置sbt2.解压:tar -zxvf sbt-1.2.1.tgz

centos7 安装配置sbt

centos7 安装配置sbt3. cd sbt , vim sbt,编辑如下内容,保存退出。

centos7 安装配置sbt

4.授权

chmod u+x ./sbt

centos7 安装配置sbt5.配置环境变量:

vi  /etc/profile,添加:

export PATH=/opt/sbt/sbt/:$PATH

6.更新配置文件:

source /etc/profile

centos7 安装配置sbt7. 查看版本:

sbt sbtVersion

以上

linux编译项目代码,需设置一下三步:

1. 替换/opt/sbt/sbt/conf下的repo.properties
2. 替换/opt/sbt/sbt/binsbt-launch.jar
3. 替换/root/.ivy2cache目录

 

 

相关文章: