1
我目前移植我的播放2斯卡拉API項目,並遇到編譯時10個警告指示繼續:SBT - 類沒有找到,有存根
[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增強插件(https://www.playframework.com/documentation/2.5.x/PlayEnhancer),並沒有把它設置了正確 – jilen