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%


原文地址:http://306963591.iteye.com/blog/1677405

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章