如何增加 maven PermGen space

how to increase maven PermGen space

我在构建时遇到此错误:

[ERROR] PermGen space -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError

with java 7. 求助?

这似乎可以做到(MaxPermSize part):

export MAVEN_OPTS="-XX:MaxPermSize=128m"

http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError

还有其他方法可以将其设置为 specific project

显然,MaxPermSize 的概念已在 java 8,FWIW 中删除。