> -----Original Message-----
> From: Jerome Lacoste [mailto:[EMAIL PROTECTED]
> Sent: 04 June 2004 16:53
> To: Maven Users List
> Subject: RE: retrieve the path of a particular artifact
>
[snip]
> > >
> > > I guess there's something cleaner allowing to access directly an
> > > artifact given its name or id.
> > >
> > > Any idea?
> >
> > Yes! Check the maven plugin jelly code for example... ;-)
>
> In that file? maven-plugins/plugin/plugin.jelly
No, no. I meant in the Cactus maven plugin...
>
> you mean that?
> <u:file var="localPluginFile"
>
>
name="${maven.repo.local}/${groupId}/plugins/${artifactId}-${version}.ja
r"
> />
>
> Here I have to hardcode even more things. And it's dependant on the
layout
> of the local repos.
>
Nope. Here's an extract from the Cactus plugin's jelly file:
<ant:path id="cactus.classpath">
<ant:pathelement
location="${plugin.getDependencyPath('cactus:cactus-ant')}"/>
<ant:pathelement
location="${plugin.getDependencyPath('cactus:cactus')}"/>
<ant:pathelement
location="${plugin.getDependencyPath('commons-logging:commons-logging')}
"/>
[...]
> Maybe I misunderstood you?!
I wasn't clear enough it seems... ;-)
Thanks
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]