我正在运行WRO4J-MAVEN-PLUGIN 1.7.3对最新的bootstrap少源(3.1.0),并获得以下例外:
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有关,需要较新版本的少?
根据 @alexo的上述评论,使用LEYS4J处理器在LeseCSS处理器上更改已解决此问题。
所以我的wor.properties现在看起来像:
preProcessors=cssImport,semicolonAppender
postProcessors=less4j,cssMinJawr