我第一次接触Play 2.0。我使用homebrew进行安装。
~/code $ brew info play play: stable 2.1.0, HEAD http://www.playframework.org/ /usr/local/Cellar/play/2.1.0 (3998 files, 254M) * https://github.com/mxcl/homebrew/commits/master/Library/Formula/play.rb
我创建了一个新项目,并为IntelliJ(12.0.4)设置了该项目。
~/code $ play new playtime ... play! 2.1.0 (using Java 1.7.0_15 and Scala 2.10.0), http://www.playframework.org ... OK, application playtime is created. ... ~/code $ cd playtime/ ~/code/playtime $ play idea ... ... [info] Created /.../playtime/.idea_modules/playtime.iml [info] Created /.../playtime/.idea_modules/playtime-build.iml ~/code/playtime $
我打开IntelliJ并重建项目,但我得到以下提示:
scala: Output path /.../playtime/project/target/scala_2.9.2 is shared between: Module 'playtime-build' production, Module 'playtime-build' tests Currently external Scala compiler prohibits output path sharing. Either disable the external build mode or configure separate output paths. TIP: you can use Project Artifacts to combine compiled classes.
- 如何创建一个干净的空项目以进行构建?
- 为什么Play会创建一个名为“-build”的模块?它有什么作用?
- 为什么该模块引用Scala 2.9.2路径?
- 库scala-2.9.2和scala-2.10.0也被创建,但没有被使用。为什么?