English 中文(简体)
找不到 sbt 0.11.2 发射器
原标题:Cannot find sbt launcher 0.11.2

我有一个 play 2. 0 app 使用 sbt 0.11.2 。 但是,当我设置一个新的 Play 服务器时,它抓住了 sbt 0.11.3 的最新版本。 当我在新服务器上运行 sbt 编译 时,它抱怨说:

Detected sbt version 0.11.2
Cannot find sbt launcher 0.11.2
Please download: 
/sbt-launch.jartypesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/0.11.2
/sbt-launch.jarc2-user/.sbt/.lib/0.11.2

我尝试下载 sbt- launch 0.11.2 ,并将 sbt 放在与 sbt 相同的文件夹中,但还是有同样的错误。顺便提一下, play 汇编 sbt 汇编 之间是否有区别,因为 play 汇编 有效。

问题回答

是的,我认为在 play 汇编 sbt 汇编 之间有区别,如果您的 sbt 脚本使用不同的 SBT 版本, 在您的情况中是 verion 0.11.2, 而不是 Play s 0.11.3。

也许你应该开始使用SBT0.11.3来代替?

我刚刚升级到播放2.1-SNAPSHOT (Git rev. f7de038a48, Fri 25 May 25),使用SBT 0.11.3,我不得不在 project/building.propperities 中作出这一修改:

Change from: sbt.version=0.11.2
to: sbt.version=0.11.3

我把我的SBT冲洗剧本 和Play的剧本联系起来, 也就是0.11.3而不是0.11.2。

如果您从源代码中重新汇编 Play20, 在运行 ./building 命令 ( ./Play20/framework )后, 您将会在 Play shell 中 。

运行关于 的命令 , 您可以检查正在运行的 sbt 版本 。

> about
[info] This is sbt 0.12.0
[info] The current project is {file:/home/jw/code/Play20/framework/}Root
[info] The current project is built against Scala 2.9.2
[info] Available Plugins: com.typesafe.tools.mima.plugin.MimaPlugin,        com.typesafe.sbtscalariform.ScalariformPlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.9.2

然后在您的工程目录中,将 ./project/building.properities 更改为正确版本。





相关问题
How to flatten a List of different types in Scala?

I have 4 elements:List[List[Object]] (Objects are different in each element) that I want to zip so that I can have a List[List[obj1],List[obj2],List[obj3],List[obj4]] I tried to zip them and I ...

To use or not to use Scala for new Java projects? [closed]

I m impressed with Twitter and investigating to use Scala for a new large scale web project with Hibernate and Wicket. What do you think about Scala, and should I use it instead of Java? EDIT: And, ...

Why does Scala create a ~/tmp directory when I run a script?

When I execute a Scala script from the command line, a directory named "tmp" is created in my home directory. It is always empty, so I simply deleted it without any apparent problem. Of course, when I ...

Include jar file in Scala interpreter

Is it possible to include a jar file run running the Scala interpreter? My code is working when I compile from scalac: scalac script.scala -classpath *.jar But I would like to be able to include a ...

Scala and tail recursion

There are various answers on Stack Overflow which explain the conditions under which tail recursion is possible in Scala. I understand the limitations and how and where I can take advantage of tail ...