Then run those tests in independent surefire forks. This should allow Maven to hold on to less test metadata, and cope better with the large number of tests.