I faild in setting the permsize or maxpermsize with the maven-compiler-plugin (v3.2).
I tried it like this:
org.apache
First there is a hint concerning the parameters in the docs
Sets the arguments to be passed to the compiler if fork is set to true. Example:
<compilerArgs>
<arg>-Xmaxerrs=1000</arg>
<arg>-XX:PermSize=128m</arg>
</compilerArgs>
which means if you need them for you build you have to do this either via MAVEN_OPTS
or you can define them in .mavenrc
(linux) or mavenrc_pre.bat
(Windows).
From the javac documentation:
-Joption Pass option to the java launcher called by javac. For example, -J-Xms48m sets the startup memory to 48 megabytes.
Based on the above:
<compilerArgs>
<arg>-J-XX:PermSize=128m</arg>
<arg>-J-XX:MaxPermSize=256m</arg>
</compilerArgs>
You can just add
export MAVEN_OPTS=-Xmx512m
in your ~/.bash_profile