I am attempting to use maven-artifact-ant-2.0.4-dep.jar to manage
dependencies in my Ant build and have run into some unexpected behavior.
 
The maven-artifact-ant-2.0.4-dep.jar has been added to ANT_HOME/lib.
 
My build.xml contains:
 
<project name="mycspframework" default="build"
xmlns:artifact="antlib:org.apache.maven.artifact.ant" basedir=".">
 ...
        <artifact:localRepository id="local.repository"
location="${basedir}/target/local-repo" layout="default"/>
        <artifact:remoteRepository id="remote.repository"
url="${remote.repo.url}"/>
 
        <artifact:dependencies pathId="dependency.classpath">
            <dependency groupId="xmlbeans" artifactId="xbean"
                    version="1.0.3"/>
        </artifact:dependencies>
</project>
 
and when I execute the build, I see always see the following output:
 
[artifact:dependencies]
-----------------------------------------------------
[artifact:dependencies] this realm = plexus.core
[artifact:dependencies] Number of imports: 0
[artifact:dependencies]
-----------------------------------------------------
[artifact:dependencies] An error has occurred while processing the Maven
artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to find component:
org.apache.maven.project.MavenProjectBuilder
[artifact:dependencies]
org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars()Ljava/ut
il/Properties;
[artifact:dependencies]
 
BUILD FAILED
C:\build.xml:36: Unable to find component:
org.apache.maven.project.MavenProjectBuilder
 
 
Any suggestions would be greatly appreciated..
 
-Bill

 
 

Reply via email to