When I run maven clean install from the command line it runs fine without any issues. However, when I run maven clean install through eclipse it gives and error. I configured an external maven source and do not use the embedded maven resource which is used by eclipse.
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ client ---
[INFO] Compiling 2612 source files to C:\Users\Name\workspace\projectname\client\src\main\webbapp\WEB-INF\classes
java.lang.OutOfMemoryError: PermGen space
Dumping heap to java_pid5368.hprof ...
Heap dump file created [126539667 bytes in 0.924 secs]
[ERROR] PermGen space -> [Help 1]
It runs fine when I run the maven clean install from the same source directory on the command prompt however, it is not working when I run it when it is configured through eclipse.What must be done?