You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jeff li <jo...@gmail.com> on 2005/11/13 06:33:19 UTC

question about antlib

Hi,


<project name="common-model" basedir="."
xmlns:artifact="urn:maven-artifact-ant">

<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
uri="urn:maven-artifact-ant">
<classpath>
<pathelement location="src/main/resource/maven-artifact-ant-2.0-dep.jar" =
/>
</classpath>
</typedef>

<artifact:pom id="maven.project" file="pom.xml" />

<artifact:localRepository id="localrepo" location="c:/repo"
layout="default"/>

<artifact:dependencies pathId="dependency.classpath" >
<pom refid="maven.project"/>
<localRepository refid="localrepo"/>
</artifact:dependencies>


the question is that the jar files on dependencies of pom.xml can not be
found with dependency.classpath . any error on my ant scritp? thank you very
much!

good day
Jeff

Re: question about antlib

Posted by Brett Porter <br...@gmail.com>.
Can you elaborate on "can't be found with dependency.classpath"?

- Brett

On 11/13/05, jeff li <jo...@gmail.com> wrote:
> Hi,
>
>
> <project name="common-model" basedir="."
> xmlns:artifact="urn:maven-artifact-ant">
>
> <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
> uri="urn:maven-artifact-ant">
> <classpath>
> <pathelement location="src/main/resource/maven-artifact-ant-2.0-dep.jar" =
> />
> </classpath>
> </typedef>
>
> <artifact:pom id="maven.project" file="pom.xml" />
>
> <artifact:localRepository id="localrepo" location="c:/repo"
> layout="default"/>
>
> <artifact:dependencies pathId="dependency.classpath" >
> <pom refid="maven.project"/>
> <localRepository refid="localrepo"/>
> </artifact:dependencies>
>
>
> the question is that the jar files on dependencies of pom.xml can not be
> found with dependency.classpath . any error on my ant scritp? thank you very
> much!
>
> good day
> Jeff
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org