`
306963591
  • 浏览: 73394 次
  • 性别: Icon_minigender_1
  • 来自: 安徽省
社区版块
存档分类
最新评论

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%

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics