“Aufgabe konnte nicht erstellt werden oder Typ antlib: org.apache.maven.artifact.ant: mvn” Fehler in Ant

Ant Build konnte nicht ausgeführt werden, während die Ant-Tasks in @ ausgeführt wurdbuild.xml. In der Konsole ist folgender Fehler aufgetreten:

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

Ich habe die JAR-Datei maven-ant-tasks im Ordner des Eclipse-Plugins und im Verzeichnis WinAnt ANT_HOME / lib abgelegt und auch im Klassenpfad enthalten. Aber es hat mein Problem nicht gelöst unddiese Antwort konnte das Problem auch nicht lösen.

Antworten auf die Frage(4)

Ihre Antwort auf die Frage