Why Am I Getting an OutOfMemoryError with my Ant Task?
Many Ant tasks work by forking the JVM.
The default size of the forked JVM may well need to be increased. To test this
theory, increase it to something reasonable by including
1ANT_OPTS=Xmx1g ant publish-interesting-artifact