Excellent point Martin. I just hate ending a Friday with unsolved problems, I find it easier to have fun when I have satisfied my goals for the week.

The problem was I did not realize I had to define the escape character too...

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<escapeString>\</escapeString>
</configuration>
</plugin>

Cheers, Eric

On 4/4/2014 6:09 PM, Martin Gainty wrote:
Eric-

Its friday nite most "normal people" are now engaging in insane activity called 
'having fun'

i dont know what you have setup in environment variables so:

change
<projectBuildDirectory>\${project.build.directory}</projectBuildDirectory>

to
<project.build.directory>BaseFolderForYourProject</project.build.directory>

HTH
Martin-

Date: Fri, 4 Apr 2014 17:13:04 -0700
From: [email protected]
To: [email protected]
Subject: Maven Filtering

According to http://maven.apache.org/shared/maven-filtering/ I can define

<properties>
<projectBuildDirectory>\${project.build.directory}</projectBuildDirectory>
</properties>

and I should expect to see

${project.build.directory}

when the property projectBuildDirectory is used, but instead I get

\D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target

Am I going insane, is this a bug in Maven, or is the documentation wrong?

Is there some other way to escape the filtering?

Cheers, Eric
                                        

Reply via email to