我正试图让escalante-sbt运行但到目前为止没有运气。我用Scala 2.10.3尝试了SBT 0.13.1。和question中的问题一样,没有什么对我有用。在我的最后一次尝试中,我克隆了一个sbt-escalante example,但这甚至都没有。
[info] Resolving org.scala-sbt#sbt-launch;0.13.1 ...
[warn] [NOT FOUND ] org.apache.maven.wagon#wagon-provider-api;1.0!wagon-provider-api.jar (1794ms)
[warn] ==== JBoss repository: tried
[warn] http://repository.jboss.org/nexus/content/groups/public/org/apache/maven/wagon/wagon-provider-api/1.0/wagon-provider-api-1.0.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.maven.wagon#wagon-provider-api;1.0!wagon-provider-api.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: download failed: org.apache.maven.wagon#wagon-provider-api;1.0!wagon-provider-api.jar
我真的想让sbt-escalante工作,但我没有想法。剩下要尝试什么?
答案 0 :(得分:0)
我从未使用Escalante SBT插件,请原谅错误。以下似乎对我有用。
<强>项目/ build.properties 强>
sbt.version=0.13.2-M3
project / sbt-escalante.sbt (我以为我会将the official *.scala approach更改为* .sbt)
resolvers ++= Seq(
"JBoss repository" at "http://repository.jboss.org/nexus/content/groups/public/",
"Project Odd repository" at "http://repository-projectodd.forge.cloudbees.com/upstream/"
)
lazy val plugins = project in file(".") dependsOn(sbtEscalante)
lazy val sbtEscalante = uri("git://github.com/escalante/sbt-escalante.git#0.2.0")
<强> build.sbt 强>
import io.escalante.sbt.EscalantePlugin._
escalanteSettings
有了这些文件,我可以运行escalante-version
,因此假设它工作正常。
[sbt-escalante]> escalante-version
[info] 0.3.0