“Fehler beim erstellen der Aufgabe, oder geben Sie antlib:org.apache.maven.Artefakt.ant:mvn" Fehler in der Ameise

Ant-build-Fehler beim ausführen während der Ausführung des ant-tasks in build.xml. Ich bekam die folgende Fehlermeldung in der Konsole:

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

Legte ich das maven-ant-Aufgaben-jar-Datei im eclipse-plugins-Ordner und in den WinAnt ANT_HOME/lib Verzeichnis und auch in den classpath. Aber es hat nicht mein problem zu lösen und diese Antwort auch nicht das Problem zu lösen.

InformationsquelleAutor Lucky | 2015-10-05
Schreibe einen Kommentar