我目前正在迁移我的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个警告.
谢谢 !:)