With Grails 2.2.0 and above the error message below is displayed after an InvocationTargetException is thrown (Run any available ant goal).
/Users/yves/ant-fail/build.xml:92: The following error occurred while executing this line:
/Users/yves/ant-fail/build.xml:97: The following error occurred while executing this line:
/Users/yves/ant-fail/build.xml:48: Unable to start Grails: java.lang.reflect.InvocationTargetException
This happens with Ant 1.8.2 which may be unsupported. If I recall correctly, the Ant integration is supposed to work with Ant 1.7.x only.
After running ant in verbose mode, I can see that it's complaining about a missing ivy report related class, but it doesn't end there.
Again the problems may not be exactly the same accordingly to the Apache Ant version used.
However, I believe that the issue can be solved for all modern Ant versions (1.7.+), by adding the following to ivy.xml:
<dependency org="org.apache.ivy" name="ivy" rev="2.3.0"/>
<dependency org="org.codehaus.gant" name="gant_groovy1.8" rev="1.9.9" conf="build"/>
<dependency org="jline" name="jline" rev="1.0" conf="build"/>
<dependency org="org.fusesource.jansi" name="jansi" rev="1.10" conf="build"/>