由于找不到符号错误,在 Heroku 中部署 Play Framework 应用程序失败

Deploying Play Framework app in Heroku fails due to cannot find symbol error

我正在尝试在 Java 中使用 Play Framework 2.5 在 Heroku 中部署应用程序,但显然找不到 twirl 模板。我已经将需要的 classes_managed 文件夹添加到构建路径中,以便可以找到由于 sbt compile 生成的 类 。我错过了什么?我发现的问题是由于 mvn install 命令,我也在使用 mvn 编译器版本 3.5.1。感谢您的帮助,在此先感谢您。

---------------------------------
remote:        [INFO] BUILD FAILURE
remote:        [INFO] ------------------------------------------------
------------------------
remote:        [INFO] Total time: 13.533 s
remote:        [INFO] Finished at: 2017-12-30T14:49:21+00:00  
remote:        [INFO] Final Memory: 29M/202M
remote:        [INFO] ------------------------------------------------
------------------------
remote:        [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-
compile) on project cdsstore: Compilation failure: Compilation 
failure:
remote:        [ERROR]/tmp/build_e0239abc024f292dddcba7732b9de514/app/controllers/CategoryListController.java:[51,27] cannot find symbol
remote:        [ERROR] symbol:   variable categorylist
remote:        [ERROR] location: class controllers.CategoryListController
remote:        [ERROR] /tmp/build_e0239abc024f292dddcba7732b9de514/app/controllers/CategoryListController.java:[75,27] cannot find symbol
remote:        [ERROR] symbol:   variable categorylist
remote:        [ERROR] location: class controllers.CategoryListController
remote:        [ERROR] /tmp/build_e0239abc024f292dddcba7732b9de514/app/controllers/CategoryListController.java:[113,27] cannot find symbol
remote:        [ERROR] symbol:   variable profile
remote:        [ERROR] location: class controllers.CategoryListController
remote:        [ERROR] /tmp/build_e0239abc024f292dddcba7732b9de514/app/controllers/ShoppingCartController.java:[67,39] package routes does not exist

我通过进入 eclipse 中的项目属性解决了这个问题,禁用了 maven 特性,然后再次读取它。