我刚把Maven从2.0.9升级到2.2.1,运行maven构建时遇到以下异常:
INFO] [antrun:run {execution: precompile-jsp}] [INFO] Executing tasksbuild-jsps.xml ant脚本在正在构建的Maven Web应用程序中运行org.apache.jasper.JspC任务来预编译JSP。这在Maven 2.0.9上运行良好。Google给出了一堆人问类似的问题,但没有答案。有人遇到过这个问题并知道如何解决吗?或者只是想知道为什么会出现IllegalAccessError?
default:
jspc: [mkdir] Created dir: C:\builds\trunk\webapps\vyre_portlets\WEB-INF\jsp_src [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] An Ant BuildException has occured: The following error occurred while executing this line: C:\unify\trunk\portlets\build-jsps.xml:87: The following error occurred while executing this line: C:\unify\trunk\portlets\build-jsps.xml:7: java.lang.IllegalAccessError: tried to access method org.apache.tools.ant.launch.Locator.decodeUri(Ljava/lang/String;)Ljava/lang/String; from class org.apache.tools.ant.AntClassLoader