Oh, okay. By default, all paths are relative to basedir already, so I'm not
sure why you'd need it. But in my setup, this still works:
<resource>
<directory>${basedir}/foo</directory>
</resource>
Again, I'm not sure what it means with multiple modules, but it should at
least get resolved. What does you pom look like, and what results are you
seeing?
Paul
EJ Ciramella-2 wrote:
>
> Ahh - I'm not talking about having it IN a resource, I'm talking about
> having it in the resource mapping in the POM file.
>
> -----Original Message-----
> From: pjungwir [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 25, 2006 3:31 PM
> To: [email protected]
> Subject: RE: basedir
>
>
> Hmm. It works for me in a plain, single-module setup. You may need to
> say
> <filtering>true</filtering>; I don't know if it's the default. I'm not
> sure
> what ${basedir} means with many modules. Are you getting weird results,
> or
> is it just not getting replaced at all?
>
> Paul
>
>
> EJ Ciramella-2 wrote:
>>
>> I haven't been able to get that kind of thing to work when running
>> process-resources.
>>
>> Additionally, if I have three levels, (parent pom.xml -> parent
> pom.xml
>> -> module pom.xml) and the resource processing happens at the module
>> level, would the basedir be of the parent pom or of the module pom?
>>
>> -----Original Message-----
>> From: pjungwir [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, October 25, 2006 2:35 PM
>> To: [email protected]
>> Subject: Re: basedir
>>
>>
>> ${basedir} :-)
>>
>> Technically, this gives the directory where the pom is located, not
> the
>> directory from which you run mvn.
>>
>> Paul
>>
>>
>> EJ Ciramella-2 wrote:
>>>
>>> Is there some property readily available that represents the
> directory
>>> from which maven was run from?
>>>
>>> Something like ${basedir} in ant?
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/basedir-tf2509183.html#a6997723
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/basedir-tf2509183.html#a6998607
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/basedir-tf2509183.html#a6998978
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]