Hard to believe that Maven in isolation requires so much of permgen. At wich stage did the issue happen? Maybe after having run tests of a previous module?