I was trying to build a project using maven.
In middle of the build i got this error
java.lang.OutOfMemoryError: PermGen space
To solve this problem, just set your maven_opts to raise the memory for this process.
export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M"
and the problem will be solved. 🙂