读书人

Spring 源码编译 失误FAILURE: Build

发布时间: 2012-12-27 10:17:10 作者: rapoo

Spring 源码编译 出错FAILURE: Build failed with an exception.

编译过程中出现如下错误

?

FAILURE: Build failed with an exception.

?

* What went wrong:

Execution failed for task ':referencePdf'.

> Java heap space

?

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

?

BUILD FAILED

?

Total time: 2 mins 0.683 secs

?

看下错误日志,发现需要调整 gradlew.bat文件中的?MaxHeapSize 的大小

?set GRADLE_OPTS=-XX:MaxPermSize=512m -Xmx512m -XX:MaxHeapSize=512m %GRADLE_OPTS%

读书人网 >网络基础

热点推荐