gpt4 book ai didi

scala - 无法在OSX平台上使用激活程序下载sbt-plugin 2.5.4

转载 作者:行者123 更新时间:2023-12-01 23:20:40 25 4
gpt4 key购买 nike

我曾在Ubuntu中使用它,但是,

我似乎无法在mac OS sierra中编译play scala项目。我手动安装了activator-dist-1.3.12并将激活器bin的路径添加到/ etc / paths中。

我收到此错误:

$ activator compile

[info] Loading project definition from /Volumes/carldrive/workspace/Documents/knowledge-base/knowledge-base-api/project
[info] Updating {file:/Volumes/carldrive/workspace/Documents/knowledge-base/knowledge-base-api/project/}knowledge-base-api-build...
[info] Resolving com.typesafe.play#sbt-plugin;2.5.4 ...
[error] Server access Error: Operation timed out (Connection timed out) url=https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[error] Server access Error: Operation timed out (Connection timed out) url=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[error] Server access Error: Operation timed out (Connection timed out) url=http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[error] Server access Error: Operation timed out (Connection timed out) url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] module not found: com.typesafe.play#sbt-plugin;2.5.4
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== local: tried
[warn] /Users/calot/.ivy2/local/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/play/sbt-plugin_2.10_0.13/2.5.4/sbt-plugin-2.5.4.pom
[warn] ==== activator-launcher-local: tried
[warn] /Volumes/carldrive/workspace/bin/activator-dist-1.3.12/repository/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== activator-local: tried
[warn] /Volumes/carldrive/workspace/bin/activator-dist-1.3.12/repository/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== sbt-releases-repo: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== sbt-plugins-repo: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== maven-central: tried
[warn] http://repo1.maven.org/maven2/com/typesafe/play/sbt-plugin_2.10_0.13/2.5.4/sbt-plugin-2.5.4.pom
[info] Resolving org.scala-sbt#sbt;0.13.11 ...

最佳答案

我不确定您是否可以在干净的Ubuntu上(或在清理SBT缓存之后)构建此项目。缺少https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml,您可以在https://dl.bintray.com/typesafe/maven-releases/com/typesafe/play/上查看结构,是的https://repo.typesafe.com重定向到https://dl.bintray.com
因此,sbt-plugin现在在https://dl.bintray.com/playframework/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml中。看起来像The official documentation not yet fixed

我建议您使用Binatry存储库(对我有用)

resolvers += Resolver.bintrayRepo("owner", "repo")

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.4")

关于scala - 无法在OSX平台上使用激活程序下载sbt-plugin 2.5.4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40990256/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com