mvn install時に出るエラーの原因

Aipoをビルドするときに以下のエラーが出ることがあります。

これはyuicompressorがjavascriptファイルをcompressするときにJavascriptで構文エラーが起きる(if文の閉じタグがないとか)時に起きるエラーになります。

[ERROR] Failed to execute goal net.alchim31.maven:yuicompressor-maven-plugin:1.3.2:compress (default) on project war: Execution default of goal net.alchim31.maven:yuicompressor-maven-plugin:1.3.2:compress failed: Compilation produced 1 syntax errors. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :war