添加新类时Heroku上的Play Framework编译错误



我已经在Heroku上运行了,一切都很好。我在我的模型中添加了一个新的类,在本地一切都很好。当我向Heroku进行git推送时,我会收到以下错误(注意,在进行推送之前,我停止了现有的进程并运行了-heroku run "play clean --%prod"):

编译错误(在第2589行附近的/app/models/connectors/ContentConnectorIfc.java中)无法编译文件/app/models/connectors/ContentConnectorIfc.java。引发的错误为:ContextVisionObstacleConnector cannot be resolved to a type

   play.exceptions.CompilationException: ContextVisionObstacleConnector cannot be resolved to a type
    at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:246)
    at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:672)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:516)
    at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:278)
    at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:412)
    at play.Play.preCompile(Play.java:566)
    at play.Play.init(Play.java:291)
    at play.server.Server.main(Server.java:158)

未能建立Play!应用!已清除播放!缓存中的框架!Heroku推送被拒绝,无法编译Play!应用

应用程序的依赖关系似乎出了问题。你查过你的dependencies.yml吗?确保你运行

play deps --sync

在你推进heroku之前。

我一直忘记commit-a不会添加文件,您必须执行单独的添加命令。我的坏。与heroku或游戏无关。资源没有添加到我的推送中。

最新更新