centos7 安装配置sbt

Linux sbt安装配置

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

2.解压:tar -zxvf sbt-1.2.1.tgz

3. cd sbt , vim sbt,编辑如下内容,保存退出。

4.授权

chmod u+x ./sbt

5.配置环境变量:

vi  /etc/profile,添加:

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

6.更新配置文件:

source /etc/profile

7. 查看版本:

sbt sbtVersion

以上

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

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

 

 

原文地址:https://www.cnblogs.com/frantz/p/11469969.html