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

 

 

相关文章:

  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
猜你喜欢
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2021-07-20
  • 2021-12-17
相关资源
相似解决方案