Suppose I have to execute some actions after some phase.
These actions are made plugins X and Y. 
1st action - executed by plugin X
2nd action - executed by plugin Y
3rd action - executed by plugin X

I wrote the following pom:

            <build>
                <plugins>
                    <plugin>
                        <artifactId>plugin-x</artifactId>
                        <executions>
                            <execution>
                                <id>step-1-x</id>
                                <phase>initialize</phase>
                                <goals>
                                    <goal>goal-x-1</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>plugin-y</artifactId>
                        <executions>
                            <execution>
                                <id>step-2-y</id>
                                <phase>initialize</phase>
                                <goals>
                                    <goal>goal-y-1</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>plugin-x</artifactId>
                        <executions>
                            <execution>
                                <id>step-3-x</id>
                                <phase>initialize</phase>
                                <goals>
                                    <goal>goal-x-2</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>

I executed:
mvn initialize

But the sequence of executions was wrong:
1. step-1-x 
2. step-3-x 
3. step-2-y 

This means that each plugin executes all its executions, then the next
plugin starts to work.
Can I corrupt such scenario ?
-- 
View this message in context: 
http://old.nabble.com/How-can-I-execute-plugin-X%2C-then-plugin-Y%2C-then-plugin-X-again---tp26287350p26287350.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