I'm running a build time optimization using maven and a wro.xml file. Now, when the xml file is incorrect (syntax or even back content), it generates an error like:
[ERROR] Exception occured while processing: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 1: unexpected token: < @ line 1, column 1.
<?xml version="1.0" encoding="UTF-8"?>
^
1 error
, class: org.codehaus.groovy.control.MultipleCompilationErrorsException,caused by:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 1: unexpected token: < @ line 1, column 1.
<?xml version="1.0" encoding="UTF-8"?>
^
1 error
It seems that a failure to parse/interpret the XML triggers the groovy model, leading to an obscure error message.