I have a Java 8 project in intellij. When I build the project using Maven (clean compile verify), it works fine. However, when I try to build the project using IntelliJ's "Build Project" feature, I encounter an OutOfMemory Exception.
What could be the cause of this !!!?
I tried to increase the memory for Intelij and also maven but it didn't change anything
Try the following three steps:
PS: Also try deleting the build file, sometimes that's all you need to do :)