You need to configure filtering for the file you want filtered.
Have a look at the war plugin for how to define which files get filtered
2009/3/30 James Depaul
>
>
> I've searched the archives for this but no luck -
>
> I need to build my web.xml file with specific values based on the target
> environment for which I'm performing the build. Therefore, I'd like maven
> to perform some variable substitution when I run the mvn install goal. I'm
> trying to use profiles for this (though I obviously lack solid
> understanding of profiles at this point). Here is what I did:
>
>
> I've setup 3 profiles in the parent pom.xml file like this:
>
>
>
>dev
>
> true
>
>
>dev_values...
>
>
>
>qa
>
>qa_values...
>
>
>
>prod
>
> prod_values...
>
>
>
>
>
> In my web.xml file I currently have something like this:
>
>
>contextConfigLocation
>${app.context.parm} <-- need the
> variable substitution HERE...
>
>
> I then run mvn -Pqa install goal, hoping that maven will insert the proper
> application context values into this placeholder based on the profile
> that's active, but so far this does not work for me... please tell me
> what else I'm missing to make this work.
>
> Thanks,
> James
>