Ant构建失败,而在build.xml
运行Ant任务运行。我在控制台得到了以下错误:“无法创建任务或键入的antlib:org.apache.maven.artifact.ant:MVN”在蚂蚁
Buildfile: F:\Eclipse Projects\my_project\build.xml
[typedef] Could not load definitions from resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.
BUILD FAILED
F:\my_project\build.xml:32: Problem: failed to create task or type antlib:org.apache.maven.artifact.ant:mvn
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-F:\eclipse\plugins\org.apache.ant_1.8.3.v20120321-1730\lib
-C:\Users\Lucky\.ant\lib
-a directory added on the command line with the -lib argument
我放置在Eclipse插件文件夹中的Maven的蚂蚁任务的jar文件,并在怀南特ANT_HOME/lib目录,也包括在classpath中。但它并没有解决我的问题和this answer也解决不了问题。