I just upgraded Maven from 2.0.9 to 2.2.1, and I get the following exception when starting the maven build:
INFO] [antrun: run {execution: precompile-jsp}]
[INFO] Executing tasks
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
In the build-jsps.xml ant script file, the org.apache.jasper.JspC task is executed to precompile the JSP in the webapp that maven creates. This works fine with Maven 2.0.9.
Google gives a ton of people asking similar questions, but no answers. Does anyone come across this and know how to solve this? Or even why am I getting IllegalAccessError?
source share