0
我们的应用程序是从Ant脚本构建的我的Hudson。在我最近的工作中,我最近收录了Maven。现在哈德森的编译过程在没有任何解释的情况下到达编译任务时就失败了。Javac在Hudson上莫名其妙地失败
哈德森编译:
[echo] Using Maven Repo at ../.maven/repo/
[javac] Compiling 134 source files to C:\Users\administrator1\.hudson\jobs\SAP_RC\workspace\current\classes
BUILD FAILED
C:\Users\administrator1\.hudson\jobs\SAP_RC\workspace\current\build.xml:68: Error running C:\Program Files (x86)\Java\jdk1.8.0_66\bin\javac.exe compiler
Ant脚本:
<javac classpathref="lib" destdir="${classesDir}" debug="true" debuglevel="lines,vars,source" verbose="true" fork="true" nowarn="true" memoryMaximumSize="320m" srcdir="${srcDir}" includeantruntime="false" />
我具体包括Maven的回购到类路径,当它莫名其妙地失败,这就是。当我删除Maven回购时,构建会抛出一个编译错误,抱怨它找不到Maven依赖关系。这使我怀疑,我正在触及一些类路径长度的限制。
我这样做是因为我不确定什么是将Maven依赖关系包含到类路径中的正确方法。如果有更好的方法,请告诉我,我会为此专门开一个新的问题。