首先我是Play的新手。在我的第一步中,我使用由typesafe激活器工具提供的“Play Java Seed”创建了一个Play项目。在我创建项目并将其导入IntelliJ之后,我正尝试将其上传到Heroku,如下所示:https://devcenter.heroku.com/articles/play-support。这与以下日志消息失败:
remote: [info] downloading https://repo.typesafe.com/typesafe/releases/com/typesafe/play/run-support_2.11/2.3.8/run-support_2.11-2.3.8.jar ...
remote: [info] [SUCCESSFUL ] com.typesafe.play#run-support_2.11;2.3.8!run-support_2.11.jar (229ms)
remote: [warn] ::::::::::::::::::::::::::::::::::::::::::::::
remote: [warn] :: UNRESOLVED DEPENDENCIES ::
remote: [warn] ::::::::::::::::::::::::::::::::::::::::::::::
remote: [warn] :: com.typesafe.sbtrc#client-2-11;0.3.1: not found
remote: [warn] :: com.typesafe.sbtrc#actor-client-2-11;0.3.1: not found
remote: [warn] ::::::::::::::::::::::::::::::::::::::::::::::
remote: sbt.ResolveException: unresolved dependency: com.typesafe.sbtrc#client-2-11;0.3.1: not found
remote: unresolved dependency: com.typesafe.sbtrc#actor-client-2-11;0.3.1: not found
remote: at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:217)
remote: at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:126)
如果我在激活器UI中启动应用程序,一切都很好。如何解决问题,以便将项目上传到Heroku?
答案 0 :(得分:10)
这是由Activator添加的sbt-fork-run-plugin。将文件添加到.gitignore后,一切正常:
project/play-fork-run.sbt