我从 Eclipse 导出了一个 ANT build.xml 文件,我不想将它用于我的 TeamCity 构建。运行构建时出现以下错误。关于可能导致这种情况的任何想法。
Process exited with code 1
[13:44:24]Ant output
[13:44:24][Ant output] java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
[13:44:24][Ant output] Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher
[13:44:24][Ant output] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[13:44:24][Ant output] at java.security.AccessController.doPrivileged(Native Method)
[13:44:24][Ant output] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[13:44:24][Ant output] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[13:44:24][Ant output] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[13:44:24][Ant output] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[13:44:24][Ant output] Could not find the main class: org.apache.tools.ant.launch.Launcher. Program will exit.
[13:44:24][Ant output] Exception in thread "main"
[13:44:24]Publishing internal artifacts
[13:44:24]Build finished