工作日志--Hudson 部署

本文介绍了在使用Hudson进行项目部署时遇到的两个常见错误:Java堆内存溢出及Java编译失败,并提供了详细的解决方案,包括调整JVM选项和利用Maven重构项目。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Hudson 部署项目时出现:

-------------------------------

1 . fail: hudson Java heap space

-------------------------
Hudson -->Build -->JVM Options -->-Xms512m -Xmx1024m

解决上面的error

 

-------------------------------

 

2. fail:

-----------------------

Failure executing javac, but could not parse the error:
An exception has occurred in the compiler (1.5.0_22). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.

com.sun.tools.javac.code.Symbol$CompletionFailure: file javax\xml\bind\annotation\XmlAccessorType.class not found
--------------------------

经过百般尝试无法解释上述问题,但解决了上述问题:

1)使用maven重新生成项目骨架

2)将项目源码copy --> maven新生成的项目骨架中去

3)clean install成功了。

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值