這很有趣的問題,因爲它爲我的作品(TM)在Mac OS X 10.9.3和Java 7
我Play下載的版本 - 最新的2.3.1和2.2.x的最新流 - 2.2.3。有了這兩個版本,我已經使用activator
(2.3.1)創建Web應用程序,play
用於2.2.3。兩者運作良好。
當我在2.3.1和2.2.3中執行sbt compile
時,兩個命令都能正常工作。我花了一些時間來下載所有的依賴,但最後的結果如下:
jacek:~/sandbox/play231-app
$ sbt compile
[info] Loading project definition from /Users/jacek/sandbox/play231-app/project
[info] Updating {file:/Users/jacek/sandbox/play231-app/project/}play231-app-build...
...
[info] Done updating.
[info] Compiling 5 Scala sources and 1 Java source to /Users/jacek/sandbox/play231-app/target/scala-2.11/classes...
[info] 'compiler-interface' not yet compiled for Scala 2.11.1. Compiling...
[info] Compilation completed in 14.895 s
[success] Total time: 200 s, completed Jun 25, 2014 1:00:18 PM
而對於2.2.3:
jacek:~/sandbox/play223-app
$ sbt compile
[info] Loading project definition from /Users/jacek/sandbox/play223-app/project
[info] Set current project to play223-app (in build file:/Users/jacek/sandbox/play223-app/)
[info] Updating {file:/Users/jacek/sandbox/play223-app/}play223-app...
...
[info] Done updating.
[info] Compiling 5 Scala sources and 1 Java source to /Users/jacek/sandbox/play223-app/target/scala-2.10/classes...
[info] 'compiler-interface' not yet compiled for Scala 2.10.3. Compiling...
[info] Compilation completed in 19.626 s
[success] Total time: 45 s, completed Jun 25, 2014 3:15:34 PM
我使用SBT 0.13.5使用自制軟件安裝。
$ sbt --version
sbt launcher version 0.13.5
$ java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
你介意在問題中加入'sbt about'和整個會話嗎? –
看到我的答案[無法運行激活器模板項目激活器用戶界面無法加載SBT配置](http://stackoverflow.com/questions/32155681/cant-run-activator-template-projects-activator-ui-failed-到的負載SBT-configurat/34347454#34347454)。 –