In XmlSchema, I have a unit test that has been working, more or less unchanged, for over a year. It still works when run from Eclipse.
Tonight, launched from maven, it fails instantly with an OutOfMemory exception. This with MAVEN_OPTS set to -Xmx1g. Or 2g. Changing forkMode to always has no effect. This is maven 2.2.1. It fails while parsing a pile of test cases into a DOM tree. There is no way that there is 1G of memory happening there.
