Oh sorry, I missed this post. So you're using it in <targetPath>. That is
actually relative to the target/classes directory, not the pom's directory.
Apparently maven's code doesn't check whether you've given it an absolute
path; that is a bug and you should file a jira.
I have a project where I put some resources in target/scripts. I use this:
<targetDirectory>../scripts</targetDirectory>
So you I guess you could just do this:
<targetDirectory>../../scripts</targetDirectory>
Paul
EJ Ciramella-2 wrote:
>
> I wind up with this:
>
> [INFO] Error copying resources
>
> Embedded error:
> E:\work\LTY-P000039\frontoffice\memberApp\target\classes\E:\work\LTY-P00
> 0039\frontoffice\memberApp\scripts\startApp.sh (The filename, directory
> name, or volume label syn
> tax is incorrect)
>
> When I have this:
>
> <resource>
> <directory>src/main/scripts</directory>
> <targetPath>${basedir}/scripts</targetPath>
> <filtering>true</filtering>
> </resource>
>
>
>
> -----Original Message-----
> From: EJ Ciramella [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 25, 2006 3:36 PM
> To: Maven Users List
> Subject: RE: basedir
>
> 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]
>
>
> ---------------------------------------------------------------------
> 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#a6999103
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]