I recently dealt with this exact challenge.

In the "child" war project that you are overlaying the parent with, you
need to configure the webResource section and turn filtering on like so:

In this example I will filter on any xml file in the WEB-INF folder.
 <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <webResources>
                        <webResource>

<directory>${basedir}/src/main/webapp/WEB-INF</directory>
                            <includes>
                                <!--filter on xml files-->
                                <include>**.xml</include>
                            </includes>
                            <targetPath>WEB-INF</targetPath>
                            <filtering>true</filtering>
<!-***************HERE****************-->
                        </webResource>
                    </webResources>
                </configuration>
            </plugin>



On Sun, Apr 8, 2012 at 11:30 PM, mavenbabuk <[email protected]> wrote:

> Hi,
>
>     Using assembly i have generated a parent war. I need to use this parent
> war in another child project, This parent war also having parameters like
> ${path}.
>    Now i run install command for child project. The parent war getting
> extracted.
>    But i unable to replace the ${path} parameter value from the child pom.
>
>
>    Thank for the people who try to give answer.
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Need-to-change-parameters-of-War-when-overlay-tp5626856p5626856.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to