今天项目有遇到个错误,在用Ant部署编译Java代码的时候出现了Error running apt compiler这个错误,谁知道这是怎么回事啊
代码如下:
 91          <apt
 92             sourcepath="${java.sourcepath}"
 93             srcdir="${.java.src.dir}"
 94             includes="${.java.src.include}"
 95             excludes="${.java.src.exclude}"
 96             destdir="${.java.src.output}"
 97             preprocessdir="${apt.src.output.dir}"
 98             classpathref="java.classpath"
 99             factorypathref="apt.factory.path"
 100            options="${apt.options}"
 101            compile="true"
 102            memoryMaximumSize="1024m"/>每次运行完事都会报这样的错误
102: Error running apt compiler

解决方案 »

  1.   

    错误消息如下
    BUILD FAILED
    /opt/psa/rel/eodw/exe/sra/deploy/build/ShiftReportBuild.xml:15: The following error occurred while executing this line:
    /opt/psa/rel/eodw/exe/sra/deploy/src/ShiftReport/build.xml:81: The following error occurred while executing this line:
    jar:file:/opt/psa/rel/eodw/exe/sra/deploy/src/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:115: The following error occurred while executing this line:
    /opt/psa/rel/eodw/exe/sra/deploy/src/ShiftReport/build.xml:87: The following error occurred while executing this line:
    /opt/psa/rel/eodw/exe/sra/deploy/src/ShiftReportService/build.xml:86: The following error occurred while executing this line:
    jar:file:/opt/psa/rel/eodw/exe/sra/deploy/src/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:54: The following error occurred while executing this line:
    /opt/psa/rel/eodw/exe/sra/deploy/src/ShiftReportService/build.xml:102: Error running apt compiler