I'm getting a ClassCastException trying to execute my build.xml file.  Can 
anyone figure out why?
 
 

Embedded error: The following error occurred while executing this line:
C:\copart\handheld\build.xml:12: java.lang.ClassCastException: org.apache.maven.
artifact.manager.DefaultWagonManager
 
My build.xml is just a test file at the moment and looks like this:
 
<?xml version="1.0" encoding="UTF-8"?>
 
<project default="dist" xmlns:artifact="urn:maven-artifact-ant">

    <target name="initTaskDefs">
        <!-- don't forget to update the version! -->
        <taskdef resource="org/apache/maven/artifact/ant/antlib.xml"
        classpath="lib/maven-artifact-ant-2.0-dep.jar">
        </taskdef>
    </target>
 
    <target name="test-pom" depends="initTaskDefs">
        <pom file="pom.xml" id="maven.project" />    <!-- Line 12 -->
 
        <echo>Artifact ID = ${maven.project.artifactId}</echo>
        <echo>The target dir is ${maven.project.build.directory}</echo>
    </target>
</project>

Reply via email to