Cannot find sbt launcher 0.11.2

痴心易碎 提交于 2019-12-23 12:45:35

问题


I have a Play 2.0 app that uses sbt 0.11.2. However when I set up a new Play server, it grabbed the latest version of sbt 0.11.3. Now when I run sbt compile on the new server, it complains

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

I tried downloading sbt-launch 0.11.2 and putting in the same folder as sbt but still get the same error. Incidentally, is there a difference between play compile vs. sbt compile because play compile works.


回答1:


Yes I think there is a difference between play compile and sbt compile, if your sbt script uses a different SBT version, in your case vertion 0.11.2 rather than Play's 0.11.3.

Perhaps you should start using SBT 0.11.3 instead?

I just upgraded to Play 2.1-SNAPSHOT (Git rev. f7de038a48, Fri May 25) which uses SBT 0.11.3, and I had to make this change in project/build.properties:

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

And I linked my SBT bash script to the one included with Play, i.e. 0.11.3 not 0.11.2.




回答2:


If you're compiling Play20 from source, after running the ./build command in ./Play20/framework, you'll be in the Play shell.

Run the command about and you can check what version of sbt is being run.

> 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

Then in your project directory, change the ./project/build.properties to the correct version.



来源:https://stackoverflow.com/questions/10760345/cannot-find-sbt-launcher-0-11-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!