如果我正在构建投影使用:
mvn安装
我看到以下内容:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: PermGen space
Run Code Online (Sandbox Code Playgroud)
我不确定在哪里更新我的java选项?
我在ubuntu上运行它.
如果您不喜欢依赖于某人的环境,您可以指定fork编译器插件并为其分配足够的内存.
我建议你在<pluginManagment>父POM项目的部分实际执行此操作
<build>
...
<pluginManagment>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
...
<!-- Memory management -->
<fork>true</fork>
<meminitial>128m</meminitial>
<maxmem>512m</maxmem>
...
</configuration>
</plugin>
...
</pluginManagment>
...
</build>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2398 次 |
| 最近记录: |