【发布时间】:2016-12-10 14:04:43
【问题描述】:
我目前正在迁移我的 Play 2 Scala API 项目,并在编译过程中遇到 10 个警告:
[warn] Class play.core.enhancers.PropertiesEnhancer$GeneratedAccessor not found - continuing with a stub.
都是一样的,我没有其他迹象。搜索了一下其他类似的情况,通常是因为JDK版本等等,但我已经在1.8了。
这是我在 plugins.sbt 中的内容:
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.3")
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0")
addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.0.4")
在 build.sbt 中:
libraryDependencies ++= Seq(
cache,
ws,
"org.reactivemongo" %% "play2-reactivemongo" % "0.10.5.0.akka23",
"org.reactivemongo" %% "reactivemongo" % "0.10.5.0.akka23",
"org.mockito" % "mockito-core" % "1.10.5" % "test",
"org.scalatestplus" %% "play" % "1.2.0" % "test",
"com.amazonaws" % "aws-java-sdk" % "1.8.3",
"org.cvogt" %% "play-json-extensions" % "0.8.0",
javaCore,
"com.clever-age" % "play2-elasticsearch" % "1.1.0" excludeAll(
ExclusionRule(organization = "org.scala-lang"),
ExclusionRule(organization = "com.typesafe.play"),
ExclusionRule(organization = "org.apache.commons", artifact = "commons-lang3")
)
)
如果您需要其他任何东西,请不要犹豫:)
这不是阻碍我的事情,但我希望每次重新编译我的应用程序时都避免这 10 个警告。
谢谢! :)
【问题讨论】:
-
您似乎在使用play enhancer plugin 并且没有正确设置
标签: scala playframework playframework-2.0 sbt