我正在尝试构建 spring 框架(主干和 3.0.5 版本)。构建失败,错误如下所示。已采取的步骤。
- svn co https://src.springsource.org/svn/spring-framework/trunk https://src.springsource.org/svn/spring-framework/trunkspring框架
或SVN公司https://src.springsource.org/svn/spring-framework/tags/spring-framework-3.0.5.RELEASE https://src.springsource.org/svn/spring-framework/tags/spring-framework-3.0.5.RELEASEspring-framework-3.0.5.RELEASE
- cd 构建-spring-framework
- ant
不幸的是,我正在 Windows 机器上构建。 Java版本显示
java版本“1.6.0_16”
Java(TM) SE 运行时环境(版本 1.6.0_16-b01)
Java HotSpot(TM) 64 位服务器 VM(内部版本 14.2-b01,混合模式)
thanks.
[s:javac] at org.apache.tools.ant.Task.perform(Task.java:348)
[s:javac] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
[s:javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[s:javac] at sun.reflect.GeneratedMethodAccessor151.invoke(Unknown Source)
[s:javac]
[s:javac] ----------
[subant] Leaving directory: C:\Work\SpringFramework\spring-framework-3.0.5.RELEASE\org.springframework.web
BUILD FAILED
C:\Work\SpringFramework\spring-framework-3.0.5.RELEASE\spring-build\multi-bundle\artifact.xml:60: The following error oc
curred while executing this line:
C:\Work\SpringFramework\spring-framework-3.0.5.RELEASE\spring-build\multi-bundle\common.xml:86: The following error occu
rred while executing this line:
C:\Work\SpringFramework\spring-framework-3.0.5.RELEASE\spring-build\common\artifact.xml:43: The following error occurred
while executing this line:
C:\Work\SpringFramework\spring-framework-3.0.5.RELEASE\spring-build\common\common.xml:161: The following error occurred
while executing this line:
C:\Work\SpringFramework\spring-framework-3.0.5.RELEASE\spring-build\standard\common.xml:29: java.lang.reflect.Invocation
TargetException
好吧,我仍然要纠正它..但实际原因是
java.lang.OutOfMemoryError: PermGen space
我记得我必须增加 XX:MaxPermSize VM 参数,并检查该选项。抱歉,添麻烦了。
编辑:
添加值为 -XX:MaxPermSize=128m -Xmx256m 的系统变量 ANT_OPTS 就可以了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)