我有一个可以在我的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
我尝试重新创建项目,完全清理了目录,但构建仍然失败。任何帮助将不胜感激。