You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Darren Hartford <dh...@ghsinc.com> on 2005/09/27 16:37:40 UTC
[m2] antlib and typedef - feel like a noob
Hey all,
I was ecstatic to see the maven repository support available through
Ant! I tried to follow the clear instructions at
http://maven.apache.org/maven2/ant-tasks.html, specifically the
'typedef' version.
Unfortunately, I'm getting the "Could not create task or type of type:
urn:maven-artifact-ant:remoteRepository" (and :dependencies if I skip
remoteRepo).
This is with maven-artifact-ant-2.0-beta-1-dep.jar and Ant 1.6.4 and not
entirely sure what to do next. The .jar is in the lib folder of the
project and doesn't seem to have a problem finding it.
===========
<project
name="NewDepTest"
default="get-deps"
basedir="."
xmlns:artifact="urn:maven-artifact-ant"
>
<target name="get-deps">
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
uri="maven-artifact-ant">
<classpath>
<pathelement
location="lib/maven-artifact-ant-2.0-beta-1-dep.jar" />
</classpath>
</typedef>
<artifact:remoteRepository id="maven.repo.remote" url=......
============
Any ideas? This seems straightforward... :-(
-D
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] antlib and typedef - feel like a noob
Posted by Da...@belgacom.net.
Hi,
There's a bug in the documentation. Instead of
<typedef ... uri="maven-artifact-ant">
you should have
<typedef ... uri="urn:maven-artifact-ant">
Regards,
Davy Toch
On Tuesday 27 September 2005 15:37, Darren Hartford wrote:
> <project
> name="NewDepTest"
> default="get-deps"
> basedir="."
> xmlns:artifact="urn:maven-artifact-ant"
> >
>
> <target name="get-deps">
> <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
> uri="maven-artifact-ant">
> <classpath>
> <pathelement
> location="lib/maven-artifact-ant-2.0-beta-1-dep.jar" />
> </classpath>
> </typedef>
>
> <artifact:remoteRepository id="maven.repo.remote" url=......