2017-03-17 56 views
0

当我尝试编译发挥2.5使用一个模块和SBT,编译失败播放2.5模块SBT编译

我的主要项目路线文件名为“路线”包括模块路由文件是这样的:

->  /foomodule     foomodule.Routes 

build.sbt文件:

lazy val foomodule= (project in file("modules/foomodule")) 
.enablePlugins(PlayJava) 


lazy val root = (project in file(".")) 
.enablePlugins(PlayJava, SbtWeb) 
.aggregate(foomodule) 
.dependsOn(foomodule) 

然后我运行命令SBT编译:

sbt clean compile 

我有这样以下错误:

[error] /builds/foomainproject/conf/routes:5: not found: value foomodule 

回答

0
在foomodule/conf目录

,U应改名路线foomodule.Routes

看看here