为什么Jenkins无法构建Play项目,因为"路由已被定义为对象路由"?

时间:2014-12-23 10:04:50

标签: playframework-2.0 sbt typesafe-activator

我有一个可以在我的MacBook上正常构建的Play项目,但在Ubuntu Server 14上运行Jenkins的远程构建服务器上失败。构建失败并出现以下错误:

[info] Compiling 7 Scala sources and 120 Java sources to /var/lib/jenkins/jobs/<redacted-projectname>/workspace/target/scala-2.11/classes...
[error] /var/lib/jenkins/jobs/<redacted-projectname>/workspace/conf/routes: routes is already defined as object routes
[error] /var/lib/jenkins/jobs/<redacted-projectname>/workspace/conf/routes: routes is already defined as class routes
[error] two errors found

我的本​​地计算机上有时会出现同样的问题,但我只需要./activator clean(或sbt clean),然后就可以了。

Jenkins构建配置文件是Execute Shell指令,它执行以下脚本:

./activator clean dist

我尝试重新创建项目,完全清理了目录,但构建仍然失败。任何帮助将不胜感激。

0 个答案:

没有答案