[Solved] Maven Compile Error: “java.lang.OutOfMemoryError: Java heap space”

The project executes MVN clean install successfully.
an error is always reported during the debug startup in the idea,
a compilation error is reported: Maven resources production: XXX Java.nio.file.invalidpathexception:

java.lang.OutOfMemoryError: Java heap space

↓↓↓↓↓↓↓↓

After trying all kinds of methods, I still don’t know

Select build -> on the idea directory; Rebuild project (build -> rebuild project) and idea recompile the project

Perfect solution

Similar Posts: