title: How to use an external lib/dependency in ant maven task?
body: <p>I currently have a Maven build that calls on an ant task to run.  This ant task has a dependency on some external libs.  Those libs are currently hardcoded in my system.  I would like to move those external libs to a local Maven repo and have maven retrieve them from the repo, but am not sure how to do this.</p>
  
  <p>My current task is defined as (edited the full task definition for brevity):</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
  
                  &lt;!-- Ant Custom Folder copying plugin --&gt;
                  &lt;execution&gt;
                      &lt;id&gt;rename_files&lt;/id&gt;
                      &lt;phase&gt;process-resources&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;tasks&gt;
                              &lt;taskdef resource="net/sf/antcontrib/antlib.xml" classpath="${env.ANT_HOME}/lib/ant-contrib-1.0b3.jar" /&gt;
                              &lt;taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask" classpath="${env.ANT_HOME}/lib/AntelopeTasks_3.4.1.jar" /&gt;
                              &lt;typedef name="trim" classname="ise.antelope.tasks.typedefs.string.Trim" classpath="${env.ANT_HOME}/lib/AntelopeTasks_3.4.1.jar" /&gt;
                              &lt;typedef name="lastindexof" classname="ise.antelope.tasks.typedefs.string.LastIndexOf" classpath="${env.ANT_HOME}/lib/AntelopeTasks_3.4.1.jar" /&gt;
                              &lt;typedef name="substring" classname="ise.antelope.tasks.typedefs.string.Substring" classpath="${env.ANT_HOME}/lib/AntelopeTasks_3.4.1.jar" /&gt;
                              &lt;typedef name="listfiles" classname="ise.antelope.tasks.typedefs.file.FileList" classpath="${env.ANT_HOME}/lib/AntelopeTasks_3.4.1.jar" /&gt;
                              &lt;taskdef name="fileutil" classname="ise.antelope.tasks.FileUtilTask" classpath="${env.ANT_HOME}/lib/AntelopeTasks_3.4.1.jar" /&gt;
  
                              &lt;!-- CSS --&gt;
                              &lt;for param="file"&gt;
                                  &lt;path&gt;
                                      &lt;fileset dir="target\Com-${project.version}\style\" includes="*.css" /&gt;
                                  &lt;/path&gt;
                                  &lt;sequential&gt;
                                      &lt;fileutil file="@{file}" property="fileWithoutPath"&gt;
                                          &lt;listfiles includepath="false" /&gt;
                                      &lt;/fileutil&gt;
                                  &lt;/sequential&gt;
                              &lt;/for&gt;
                          &lt;/tasks&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>I know I can define <code>&lt;dependencies&gt;</code> as part of my plugin def, but not sure how do redefine my <code>taskdef</code> to point to the dependency vs the rar jar file.</p>