hudson常见问题

1.[javac] <http://10.0.16.101:8080/job/if2c-zhenghe/ws/src/main/java/com/if2c/zhenghe/actions/GoodsUploadAction.java>:25:错误: 程序包com.sun.image.codec.jpeg不存在

解决方案:修改test-build.xml 在如下<pathid="build.class.path">

<filesetdir="${lib.dir}">

<includename="**/*.jar"/>

</fileset>

<filesetdir="${jboss.dir}/modules">

<includename="**/*.jar"/>

</fileset>

</path>

中加入

<filesetdir="${java.dir}/jre/lib">

<includename="**/*.jar"/>

</fileset>

/home/f2c/sever/jdk1.7.0_25/jre/lib路径下的rt.jar拷贝到/home/f2c/hudson/jobs/if2c-zhenghe/workspace/WebContent/WEB-INF/lib路径下。


2.<http://10.0.16.101:8080/job/if2c-zhenghe/ws/test-build.xml>:62:warning: 'includeantruntime' was not set, defaulting tobuild.sysclasspath=last; set to false for repeatable builds

解决方案:修改test-build.xml在如下中

<javacdebug="on"srcdir="${src.dir}"destdir="${temp.dir.classes}"includes="**/*">

<classpathrefid="build.class.path"/>

</javac>

中加入

<javacdebug="on"srcdir="${src.dir}"destdir="${temp.dir.classes}"includeantruntime="on"includes="**/*">

<classpathrefid="build.class.path"/>

</javac>


你可能感兴趣的:(解决方案,hudson常见问题)