- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想设置一个在 Java 7 上运行的 Play Framework 应用程序。最新版本的 Play Framework 不支持 Java 7。因此,请查看 change log我发现2.3.10是我想要的。
但奇怪的是,每个 2.3.x+ 版本的激活器链接都指向同一个位置。下载并运行它们还将设置 Play Framework 2.4.3,而无需询问任何类型的问题。
下面是我的终端输出:
shyam@shyam-work:~/Applications/activator-1.3.6-minimal$ cd
shyam@shyam-work:~$ cd Applications
shyam@shyam-work:~/Applications$ cd activator-1.3.6-minimal/
shyam@shyam-work:~/Applications/activator-1.3.6-minimal$ ./activator new
Fetching the latest list of templates...
Browse the list of templates: http://typesafe.com/activator/templates
Choose from these featured templates or enter a template name:
1) minimal-akka-java-seed
2) minimal-akka-scala-seed
3) minimal-java
4) minimal-scala
5) play-java
6) play-scala
(hit tab to see a list of all templates)
> 5
Enter a name for your application (just press enter for 'play-java')
> play-java
OK, application "play-java" is being created using the "play-java" template.
To run "play-java" from the command line, "cd play-java" then:
/home/shyam/Applications/activator-1.3.6-minimal/play-java/activator run
To run the test for "play-java" from the command line, "cd play-java" then:
/home/shyam/Applications/activator-1.3.6-minimal/play-java/activator test
To run the Activator UI for "play-java" from the command line, "cd play-java" then:
/home/shyam/Applications/activator-1.3.6-minimal/plpay-java/activator ui
shyam@shyam-work:~/Applications/activator-1.3.6-minimal$ cd play-java/
shyam@shyam-work:~/Applications/activator-1.3.6-minimal/play-java$ cd project/
shyam@shyam-work:~/Applications/activator-1.3.6-minimal/play-java/project$ ls
build.properties plugins.sbt
shyam@shyam-work:~/Applications/activator-1.3.6-minimal/play-java/project$ nano plugins.sbt
GNU nano 2.2.6 File: plugins.sbt
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.3")
// Web plugins
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.6")
addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.7")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")
// Play enhancer - this automatically generates getters/setters for pu$
// and rewrites accessors of these fields to use the getters/setters. $
// plugin if you prefer not to have this feature, or disable on a per $
// basis using disablePlugins(PlayEnhancer) in your build.sbt
addSbtPlugin("com.typesafe.sbt" % "sbt-play-enhancer" % "1.1.0")
// Play Ebean support, to enable, uncomment this line, and enable in y$
// enablePlugins(SbtEbean). Note, uncommenting this line will automati$
// Play enhancer, regardless of whether the line above is commented ou$
// addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "1.0.0")
如您所见,plugins.sbt 文件显示 2.4.3,并且在 Java 7 上构建失败。
现在,我已经通过下载 2.3.10 和 2.3.9 版本链接进行了尝试。在这两种情况下都产生了相同的结果。
因此,我尝试了this但这完全导致了不同的构建失败错误。
/home/shyam/Applications/activator-1.3.6-minimal/play-java/build.sbt:17: error: not found: value routesGenerator
routesGenerator := InjectedRoutesGenerator
^
[error] Type error in expression
我尝试用另一篇SO帖子修复这个问题(不幸的是我前段时间尝试过,此时我没有耐心再次经历这一切),这也给出了一个全新的错误。
所以我的问题是:实际设置一个简单的 Play Framework 应用程序在 Java 7 上运行有多难?
最佳答案
据我所知,Activator 并不能确定游戏的版本。它使用 plugins.sbt
等文件中的信息来确定该特定应用程序将使用哪个版本的游戏。这就是为什么不同版本的链接指向相同的激活器。
plugins.sbt
附带您正在下载的模板(种子应用程序),因此您需要 2.3.x 模板(例如,尝试从 activator templates page 手动下载一个模板),或者您将需要“反向迁移”已下载的 2.4 应用程序(可能是一项相当耗时的操作,因为版本之间存在一些重要的更改)。
关于java - 设置具有 Java 7 支持的 Play Framework 2.3.x,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32842852/
所以我的应用程序的评论显示在我的游戏控制台中,但是由于某种原因,当我在 google Play 商店上访问我的应用程序链接并以普通用户的身份查看它时,我没有收到新评论的通知,我的显示了 13 条评论,
一旦我在 2.3 play 项目上运行 'sbt compile',我就不能再使用 'sbt compile' 来编译任何 Play 2.2.x 项目。这是我运行 sbt 命令时的错误。 [info]
我有点困惑,想得到一个解释。 我正在使用 Java Play 2 和 Akka Actor 。我使用 play run 启动系统。 不过,我刚刚看到一个视频,使用了命令: play akka star
当我玩游戏时,我遇到两个选择play.api.mvc和 play.mvc包裹 有什么不同? 最佳答案 从戏! 2 文档: The API available in the play.api packa
从 2.3 迁移到 2.4 后,我收到此错误。我应该使用的正确导入语句是什么? error: value routesImport is not a member of object play.Pla
所以我在 google play 上有一个应用程序已经将近 6 个月了,最近两个月我更新了我的应用程序屏幕截图,从那时起,每次我更新我的应用程序时,我都开始收到应用程序拒绝。 上次我提出上诉并被接受,
我有以下代码: Snapshots.OpenSnapshotResult result; result = Games.Snapshots.open(googleApiClient, "save",
在过去 72 小时内,我为 Google Play 开发者计划支付的 Google 电子钱包付款显示为“您的购买正在处理中”。我知道这可能需要长达 48 小时,但这是他们处理时间最坏情况之后的一整天。
我在 Play 商店发布了应用程序,我不知道为什么应用程序显示预注册,我想为我的用户提供直接下载选项。伸出援手将不胜感激。 最佳答案 instructions for pre-registration
我有一个 PHP 后端,它与 Google Play 服务集成以验证从 APP 进行的购买。购买信息返回收据和签名,我需要验证购买是否正确。 我收到: { ...rest of the data
我在 Google Play Developer Console 上创建了我的 Android 应用程序的草稿。我已经填写了所有需要的信息。必需的步骤之一是“内容评级”。我已填写表格以自动分配 Goo
我已经设置好了 com.typesafe.play play_2.13 2.7.4 在项目 pom.xml 中。但是,当我尝试遵循this tutorial时,语句 pla
我在 Play 商店上发布了一个应用程序,并收到了一些评论。在Google Play开发者控制台中,我在一些评论中看不到应用程序的版本。这是我在“应用程序”标题下找到的内容。 版本代码 — 版本名称
假设 A 是所有者。我希望我们团队的 B、C 和 D 用户能够上传我们应用程序的新版本。这可能吗?来自 this我不太清楚用户有什么样的权限。如果有人对这部分有任何经验,欢迎。 最佳答案 您需要 go
我正在尝试将应用重新提交到 Google Play,但我似乎可以找到一种技术上的方法来实现此目的。 我对“您的应用主要针对 COPPA 定义的 13 岁以下 child 吗?”的回答是肯定的,然后在不
我想分享一下我在分析 Google Play 控制台的新功能时遇到的情况,并尝试找到解决方案。 正如你们许多人可能已经知道的那样,Google 已在 Google Play 控制台上发布了更新并引入了
我有两个用 playframework 编写的应用程序。我想加入另一个。我有一个数据库,我想在它们之间共享我的登录类。应用程序对类、方法、变量使用不同的名称。 我怎样才能实现它?我应该创建 jar 版
对于我的硕士论文,我需要自动将来自 Google Play 的不同 Android 应用程序的信息写入一个文本文件。所以我使用 perl 脚本语言来实现这种自动化。我的 perl 脚本可以在 Goog
我想测试子项目是如何工作的,尤其是 routes在主项目 ( this was not visible before ) 中考虑了子项目的数量。 我在这里阅读了文档: https://github.c
我正在使用 Play 框架 2.1.2,我有一个 handlere 方法返回一个 Promise,如 Play 的 2.1.2 documentation 中所述 但是 Play 抛出编译错误说: C
我是一名优秀的程序员,十分优秀!