“Echec de la création de la tâche ou de type antlib:org.apache.maven.artefact.ant:mvn” erreur dans Ant

Ant réussi à exécuter lors de l'exécution des tâches ant dans build.xml. J'ai obtenu l'erreur suivante dans la console:

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

J'ai placé le maven-ant-tâches fichier jar dans le plugin eclipse du dossier et dans le WinAnt ANT_HOME le répertoire/lib et sont également inclus dans le classpath. Mais elle ne résout pas mon problème et cette réponse aussi ne pouvait pas résoudre le problème.

OriginalL'auteur Lucky | 2015-10-05