在Travis构建中为SBT启动器配置repo

时间:2015-07-22 07:01:48

标签: scala sbt travis-ci

当Travis-CI提供SBT实例时,我可以在哪里覆盖SBT用于获取其启动器的repo URL?

http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.8/sbt-launch.jar目前正在提供404,因此,Travis的构建失败了:

$ sbt clean dependencyUpdates coverage test coverageReport
Detected sbt version 0.13.8
Downloading sbt launcher for 0.13.8:
  From  http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.8/sbt-launch.jar
    To  /home/travis/.sbt/launchers/0.13.8/sbt-launch.jar
Download failed. Obtain the jar manually and place it at /home/travis/.sbt/launchers/0.13.8/sbt-launch.jar

2 个答案:

答案 0 :(得分:7)

我今天遇到了同样的问题,并为travis-ci记录了一个问题:https://github.com/travis-ci/travis-ci/issues/4527

作为一种解决方法,您可以通过在.travis.yml中添加before_script部分来下载sbt-launcher.jar

{{1}}

答案 1 :(得分:1)

我们刚刚将修复程序部署到了生产环境。 SBT版本现在应该正在运行。

很抱歉给您带来不便。

https://github.com/travis-ci/travis-ci/issues/4527#issuecomment-124123880