3

我已下载此示例并进行了一些更改以解决错误。特别是,我在文件中更改sbt.version为,并将两个版本都更改为.0.13.5build.propertiesscalatra-sbtxsbt-wro4j-plugin0.3.5project/plugins.sbt

wro4j即使在手动创建文件夹后,此修改后的示例也不起作用- 命令wro4j什么也不做,container:start http://localhost:8080/compiled/scripts.js结果为 404。

插件还需要什么才能与较新版本的 sbt 和插件一起使用?wro4j 的工作版本组合是什么?

失败的例子在https://github.com/Odomontois/scalatra-coffeescript

更新

刚刚在linux机器上检查过。一切都已正确生产。所以它看起来像只有 Windows 的问题。

更新 2

经过大量不同的检查后,我调查了该问题与路径查找有关。如果您将文件保留在它们位于master分支中,则生成甚至不会启动。但是,如果您在wro.xml将路径分隔符从 unix 替换为 windows 样式时更改路径模式,即像在windows-separator分支中所做的那样将“/”更改为“\”,您将收到以下日志消息:

[info] Using relative Context: /compiled/scripts.css
[info] Processing Group: [scripts] with type [CSS]
[info] Using relative Context: /compiled/scripts.js
[info] Processing Group: [scripts] with type [JS]
[trace] Stack trace suppressed: run last compile:wro4j for the full output.
[error] (compile:wro4j) ro.isdc.wro.WroRuntimeException: No locator is capable of handling uri: \coffee\*.coffee
4

0 回答 0