maven - 如何增加maven PermGen空间
问题描述
我在构建时收到此错误:
[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
使用 java 7. 帮助?
解决方案
这似乎可以做到( MaxPermSize部分):
export MAVEN_OPTS="-XX:MaxPermSize=128m"
http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
还有其他方法可以为特定项目设置它。
显然 MaxPermSize 的概念在 java 8 FWIW 中被删除了。
推荐阅读
- python - 无法将查询结果导出到 csv 文件
- c - 具有多个中断标志的硬件模块 (C)
- c++ - 基类中的静态方法反映派生类名称
- c# - C# WebClient 正在下载损坏的文件
- video - FFMPEG在m3u8流中对齐时间戳
- .net - Stream.CopyToAsync() 调用后 UseExceptionHandling 失败
- javascript - 使用 jest 和仅回调的异步测试
- selenium - 无法使用 Selenium Webdriver 切换到 iframe
- facebook-graph-api - Facebook Graph API - 临时照片和预定帖子
- r - 指定 3 个月期间的第一天(绘制线图)