Playframework Scala Play引导WebJAR:类文件不包含Scala注释
我正在尝试将Webjars引导用于Scala Play,但我有一个关于Webjars本身的编译错误 我在&allow;我使用的是scala play 2.4.2。我的错误是:Playframework Scala Play引导WebJAR:类文件不包含Scala注释,playframework,Playframework,我正在尝试将Webjars引导用于Scala Play,但我有一个关于Webjars本身的编译错误 我在&allow;我使用的是scala play 2.4.2。我的错误是: Compilation error error while loading WebJarAssets, class file '/home/ubuntu-prod/.ivy2/cache/org.webjars/webjars-play_2.10/jars/webjars-play_2.10-2.4.0-1.jar(c
Compilation error
error while loading WebJarAssets, class file
'/home/ubuntu-prod/.ivy2/cache/org.webjars/webjars-play_2.10/jars/webjars-play_2.10-2.4.0-1.jar(controllers/WebJarAssets.class)'
is broken (class java.lang.RuntimeException/Scala class file does not contain Scala annotation)
我试图修复此错误的内容:
/home/ubuntu prod/.ivy2/cache/org.webjars/webjars-play_2.10/jars/webjars-play_2.10-2.4.0-1.jar中的jar
[...]
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"org.webjars" %% "webjars-play" % "2.4.0-1",
"org.webjars" % "bootstrap" % "3.1.1-2",
"org.webjars" % "bootswatch-cerulean" % "3.3.1+2",
"org.webjars" % "html5shiv" % "3.7.0",
"org.webjars" % "respond" % "1.4.2"
)
[...]
我的路线是:
GET / controllers.Application.index
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
GET /webjars/*file controllers.WebJarAssets.at(file)
没有WebJAR,就没有编译错误
是否要采取措施解决此问题
谢谢 通过绕过它解决了我的问题。如果有人面临同样的问题,请尝试:
routesGenerator:=InjectedRoutesGenerator
”
不管怎样,如果有人对这个破罐子有什么想法,我仍然感兴趣
干杯