2

我正在针对最新的 bootstrapless 源(3.1.0)运行 wro4j-maven-plugin 1.7.3 并得到以下异常:

Failed to execute goal ro.isdc.wro4j:wro4j-maven-plugin:1.7.3:run (default) on project     dezolve-web: Exception occured while processing: ro.isdc.wro.WroRuntimeException: Could not execute the script because:
[ERROR] {
[ERROR] "type": "Parse",
[ERROR] "message": "Syntax Error on line 1476",
[ERROR] "index": 43910.0,
[ERROR] "filename": null,
[ERROR] "line": 1476.0,
[ERROR] "column": 25.0,
[ERROR] "extract": [
[ERROR] "  padding-right: (@grid-gutter-width / 2);",
[ERROR] "  &:extend(.clearfix all);",
[ERROR] "}"
[ERROR] ]
[ERROR] }, class: ro.isdc.wro.WroRuntimeException,caused by:
[ERROR] -> [Help 1]

我在 m2e 中遇到了同样的问题 - 这与 Bootstrap 需要更新版本的 LESS 有关吗?

4

1 回答 1

3

根据上面@alexo 的评论,使用less4j 处理器而不是lessCss 处理器已经解决了这个问题。

所以我的 wro.properties 现在看起来像:

preProcessors=cssImport,semicolonAppender   
postProcessors=less4j,cssMinJawr
于 2014-02-04T21:39:03.487 回答