I am not sure I understand the problem exactly.  But one option you could
look at is separating the two tasks.
You could first use the maven dependency plugin to unpack the parent war.

<resources>
            <!--Reference the build directory so we can apply the resource
filtering to it-->
            <resource>
                <directory>${project.build.directory}/</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
          <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack</id>
                        <goals>
                            <goal>unpack-dependencies</goal>
                        </goals>
                        <!--We bind to generate resources phase so the
resource filtering can be applied to the result -->
                        <phase>generate-resources</phase>
                        <configuration>

<outputDirectory>${project.build.directory}/</outputDirectory>

<includeArtifactIds>parent-war</includeArtifactIds>
                            <excludeTransitive>true</excludeTransitive>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Next, you could then assemble a new war using the assembly plugin.

The order at which each step occurs can be dictated by the lifecycle phase
you select for each:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference



On Tue, Apr 10, 2012 at 8:15 AM, mavenbabuk <[email protected]> wrote:

>
>    I excuse for not properly execute of Ryan sample plugin configuration.
>    Now, Once again i tried and i faced the problem as given below,
>
>    While install command executes, First child application deploy with
> filtering, then parent war getting overlay.
>    How to change this order, when install.
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/replace-parameters-when-overlaying-in-maven-tp5626856p5630218.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