title: "Failed to create task or type antlib:org.apache.maven.artifact.ant:mvn" error in Ant
body: <p>Ant build failed to run while running the ant tasks in <code>build.xml</code>. I got the following error in the console:</p>
  
  <pre class="lang-none prettyprint-override"><code>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 &lt;presetdef&gt;/&lt;macrodef&gt; 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
  </code></pre>
  
  <p>I placed the maven-ant-tasks jar file in eclipse plugin's folder and in the WinAnt ANT_HOME/lib directory and also included in the classpath. But it didn't solve my problem and <a href="https://stackoverflow.com/a/11538780/1793718">this answer</a> also couldn't solve the issue.</p>