1

I get

java.lang.OutOfMemoryError: Java heap space

when I try to compile an aspecj project. The project is a maven 2 project and I have set maven-compiler-plugin to use up to 2048m memory. But this error just doesn't go away. What else can I do to increase the heap space?

newguy
  • 5,668
  • 12
  • 55
  • 95

1 Answers1

1

You could try tips specified here, including

set MAVEN_OPTS=Xmx1024M
Patrick Cornelissen
  • 7,968
  • 6
  • 48
  • 70
Raghuram
  • 51,854
  • 11
  • 110
  • 122